Files: 254c89b83aef67583e5b1b6f6cd5fdba4fb0b493 / tmpl / leftnav.part.js
6340 bytesRaw
1 | function item (current, path, label) { |
2 | var cls = '' |
3 | if (current == path) |
4 | cls = 'class="current"' |
5 | return `<li ${cls}><a href="${path}" title="${label}">${label}</a></li>` |
6 | } |
7 | |
8 | module.exports['docs-basics'] = (c) => `<ul class="nav"> |
9 | ${item(c, '/docs/basics/install-the-database.html', 'Install the database')} |
10 | ${item(c, '/docs/basics/open-a-client.html', 'Open a client')} |
11 | ${item(c, '/docs/basics/publish-a-message.html', 'Publish a message')} |
12 | ${item(c, '/docs/basics/read-the-log.html', 'Read the log')} |
13 | ${item(c, '/docs/basics/publish-a-file.html', 'Publish a file')} |
14 | ${item(c, '/docs/basics/read-a-file.html', 'Read a file')} |
15 | ${item(c, '/docs/basics/encryption.html', 'Encryption')} |
16 | </ul>` |
17 | |
18 | module.exports['docs-social'] = (c) => `<ul class="nav"> |
19 | ${item(c, '/docs/social/follow-users.html', 'Follow users')} |
20 | ${item(c, '/docs/social/query-the-social-graph.html', 'Query the social graph')} |
21 | ${item(c, '/docs/social/update-your-profile.html', 'Update your profile')} |
22 | ${item(c, '/docs/social/view-a-profile.html', 'View a profile')} |
23 | ${item(c, '/docs/social/create-new-users.html', 'Create new users')} |
24 | ${item(c, '/docs/social/join-a-pub.html', 'Join a Pub')} |
25 | ${item(c, '/docs/social/create-a-pub.html', 'Create a Pub')} |
26 | </ul>` |
27 | |
28 | module.exports['docs-message-types'] = (c) => `<ul class="nav"> |
29 | ${item(c, '/docs/message-types/post.html', 'Post')} |
30 | ${item(c, '/docs/message-types/about.html', 'About')} |
31 | ${item(c, '/docs/message-types/contact.html', 'Contact')} |
32 | ${item(c, '/docs/message-types/vote.html', 'Vote')} |
33 | ${item(c, '/docs/message-types/pub.html', 'Pub')} |
34 | ${item(c, '/docs/message-types/custom-types.html', 'Custom Types')} |
35 | </ul>` |
36 | |
37 | module.exports['docs-advanced'] = (c) => `<ul class="nav"> |
38 | ${item(c, '/docs/advanced/links.html', 'Links')} |
39 | ${item(c, '/docs/advanced/feed-send-time-sort.html', 'Feed (send time sort)')} |
40 | ${item(c, '/docs/advanced/feed-receive-time-sort.html', 'Feed (receive time sort)')} |
41 | ${item(c, '/docs/advanced/messages-by-type.html', 'Messages by type')} |
42 | ${item(c, '/docs/advanced/messages-by-user.html', 'Messages by user')} |
43 | ${item(c, '/docs/advanced/watch-for-messages.html', 'Watch for messages')} |
44 | ${item(c, '/docs/advanced/votes-on-a-message.html', 'Votes on a message')} |
45 | ${item(c, '/docs/advanced/user-files.html', 'User files')} |
46 | ${item(c, '/docs/advanced/links-between-users.html', 'Links between users')} |
47 | ${item(c, '/docs/advanced/post-threads.html', 'Post threads')} |
48 | </ul>` |
49 | |
50 | module.exports['docs-config'] = (c) => `<ul class="nav"> |
51 | ${item(c, '/docs/config/configure-scuttlebot.html', 'Configure Scuttlebot')} |
52 | ${item(c, '/docs/config/creating-test-databases.html', 'Creating test databases')} |
53 | ${item(c, '/docs/config/creating-test-users.html', 'Creating test users')} |
54 | </ul>` |
55 | |
56 | module.exports['apis-scuttlebot'] = (c) => `<ul class="nav"> |
57 | ${item(c, '/apis/scuttlebot/ssb.html', 'SSB')} |
58 | ${item(c, '/apis/scuttlebot/blobs.html', 'Blobs')} |
59 | ${item(c, '/apis/scuttlebot/block.html', 'Block')} |
60 | ${item(c, '/apis/scuttlebot/friends.html', 'Friends')} |
61 | ${item(c, '/apis/scuttlebot/gossip.html', 'Gossip')} |
62 | ${item(c, '/apis/scuttlebot/invite.html', 'Invite')} |
63 | ${item(c, '/apis/scuttlebot/private.html', 'Private')} |
64 | ${item(c, '/apis/scuttlebot/replicate.html', 'Replicate')} |
65 | </ul>` |
66 | |
67 | module.exports['apis-modules'] = (c) => `<ul class="nav"> |
68 | ${item(c, '/apis/modules/ssb-client.html', 'SSB-Client')} |
69 | ${item(c, '/apis/modules/ssb-feed.html', 'SSB-Feed')} |
70 | ${item(c, '/apis/modules/ssb-keys.html', 'SSB-Keys')} |
71 | ${item(c, '/apis/modules/ssb-ref.html', 'SSB-Ref')} |
72 | ${item(c, '/apis/modules/ssb-msgs.html', 'SSB-Msgs')} |
73 | ${item(c, '/apis/modules/ssb-msg-schemas.html', 'SSB-Msg-Schemas')} |
74 | ${item(c, '/apis/modules/ssb-markdown.html', 'SSB-Markdown')} |
75 | ${item(c, '/apis/modules/ssb-config.html', 'SSB-Config')} |
76 | ${item(c, '/apis/modules/secret-stack.html', 'Secret-Stack')} |
77 | ${item(c, '/apis/modules/muxrpc.html', 'MuxRPC')} |
78 | ${item(c, '/apis/modules/muxrpcli.html', 'MuxRPCCli')} |
79 | ${item(c, '/apis/modules/mdmanifest.html', 'MDManifest')} |
80 | ${item(c, '/apis/modules/graphmitter.html', 'Graphmitter')} |
81 | </ul>` |
82 | |
83 | module.exports['apis-pull-stream'] = (c) => `<ul class="nav"> |
84 | ${item(c, '/apis/pull-stream/pull-stream.html', 'Pull-Stream')} |
85 | ${item(c, '/apis/pull-stream/core-sources.html', 'Source Functions')} |
86 | ${item(c, '/apis/pull-stream/core-throughs.html', 'Through Functions')} |
87 | ${item(c, '/apis/pull-stream/core-sinks.html', 'Sink Functions')} |
88 | ${item(c, '/apis/pull-stream/pull-stream-to-stream.html', 'Pull-Stream-to-Stream')} |
89 | ${item(c, '/apis/pull-stream/stream-to-pull-stream.html', 'Stream-to-Pull-Stream')} |
90 | ${item(c, '/apis/pull-stream/pull-paramap.html', 'Pull-Paramap')} |
91 | ${item(c, '/apis/pull-stream/pull-cat.html', 'Pull-Cat')} |
92 | ${item(c, '/apis/pull-stream/pull-pushable.html', 'Pull-Pushable')} |
93 | ${item(c, '/apis/pull-stream/pull-notify.html', 'Pull-Notify')} |
94 | ${item(c, '/apis/pull-stream/pull-pause.html', 'Pull-Pause')} |
95 | ${item(c, '/apis/pull-stream/pull-timeout.html', 'Pull-Timeout')} |
96 | ${item(c, '/apis/pull-stream/pull-window.html', 'Pull-Window')} |
97 | ${item(c, '/apis/pull-stream/pull-otherwise.html', 'Pull-Otherwise')} |
98 | ${item(c, '/apis/pull-stream/pull-ws-server.html', 'Pull-WS-Server')} |
99 | </ul>` |
100 | |
101 | module.exports['apis-community'] = (c) => `<ul class="nav"> |
102 | ${item(c, '/apis/community/ssbify.html', 'SSBify')} |
103 | ${item(c, '/apis/community/git-ssb.html', 'Git-SSB')} |
104 | ${item(c, '/apis/community/ssb-notifier.html', 'SSB-Notifier')} |
105 | ${item(c, '/apis/community/patchwork-threads.html', 'Patchwork-Threads')} |
106 | </ul>` |
107 | |
108 | module.exports['guides-concepts'] = (c) => `<ul class="nav"> |
109 | ${item(c, '/guides/concepts/intro.html', 'Intro')} |
110 | </ul>` |
111 | |
112 | module.exports['guides-how-to-use-pull-streams'] = (c) => `<ul class="nav"> |
113 | ${item(c, '/guides/how-to-use-pull-streams/intro.html', 'Intro')} |
114 | </ul>` |
115 | |
116 | module.exports['guides-lets-write-a-file-sharing-app'] = (c) => `<ul class="nav"> |
117 | ${item(c, '/guides/lets-write-a-file-sharing-app/intro.html', 'Intro')} |
118 | </ul>` |
119 | |
120 | module.exports['guides-lets-write-a-private-messaging-app'] = (c) => `<ul class="nav"> |
121 | ${item(c, '/guides/lets-write-a-private-messaging-app/intro.html', 'Intro')} |
122 | </ul>` |
123 | |
124 | module.exports['guides-lets-write-a-todo-list-app'] = (c) => `<ul class="nav"> |
125 | ${item(c, '/guides/lets-write-a-todo-list-app/intro.html', 'Intro')} |
126 | </ul>` |
Built with git-ssb-web