Files: 86cfe7c6ec39c87ba43e41c3ed13c7902bf07fd8 / tmpl / leftnav.part.js
5357 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/join-a-pub.html', 'Join a Pub')} |
23 | ${item(c, '/docs/social/create-a-pub.html', 'Create a Pub')} |
24 | </ul>` |
25 | |
26 | module.exports['docs-message-types'] = (c) => `<ul class="nav"> |
27 | ${item(c, '/docs/message-types/post.html', 'Post')} |
28 | ${item(c, '/docs/message-types/about.html', 'About')} |
29 | ${item(c, '/docs/message-types/contact.html', 'Contact')} |
30 | ${item(c, '/docs/message-types/vote.html', 'Vote')} |
31 | ${item(c, '/docs/message-types/pub.html', 'Pub')} |
32 | </ul>` |
33 | |
34 | module.exports['docs-advanced'] = (c) => `<ul class="nav"> |
35 | ${item(c, '/docs/advanced/advanced-queries.html', 'Advanced queries')} |
36 | ${item(c, '/docs/advanced/pull-streams.html', 'Pull streams')} |
37 | ${item(c, '/docs/advanced/message-schemas.html', 'Message schemas')} |
38 | ${item(c, '/docs/advanced/linking-messages.html', 'Linking messages')} |
39 | ${item(c, '/docs/advanced/crdts.html', 'CRDTs')} |
40 | </ul>` |
41 | |
42 | module.exports['docs-config'] = (c) => `<ul class="nav"> |
43 | ${item(c, '/docs/config/configure-scuttlebot.html', 'Configure Scuttlebot')} |
44 | ${item(c, '/docs/config/creating-test-users.html', 'Creating test users')} |
45 | ${item(c, '/docs/config/creating-test-databases.html', 'Creating test databases')} |
46 | </ul>` |
47 | |
48 | module.exports['apis-scuttlebot'] = (c) => `<ul class="nav"> |
49 | ${item(c, '/apis/scuttlebot/ssb.html', 'SSB')} |
50 | ${item(c, '/apis/scuttlebot/blobs.html', 'Blobs')} |
51 | ${item(c, '/apis/scuttlebot/block.html', 'Block')} |
52 | ${item(c, '/apis/scuttlebot/friends.html', 'Friends')} |
53 | ${item(c, '/apis/scuttlebot/gossip.html', 'Gossip')} |
54 | ${item(c, '/apis/scuttlebot/invite.html', 'Invite')} |
55 | ${item(c, '/apis/scuttlebot/private.html', 'Private')} |
56 | ${item(c, '/apis/scuttlebot/replicate.html', 'Replicate')} |
57 | </ul>` |
58 | |
59 | module.exports['apis-modules'] = (c) => `<ul class="nav"> |
60 | ${item(c, '/apis/modules/ssb-client.html', 'SSB-Client')} |
61 | ${item(c, '/apis/modules/ssb-feed.html', 'SSB-Feed')} |
62 | ${item(c, '/apis/modules/ssb-keys.html', 'SSB-Keys')} |
63 | ${item(c, '/apis/modules/ssb-ref.html', 'SSB-Ref')} |
64 | ${item(c, '/apis/modules/ssb-msgs.html', 'SSB-Msgs')} |
65 | ${item(c, '/apis/modules/ssb-msg-schemas.html', 'SSB-Msg-Schemas')} |
66 | ${item(c, '/apis/modules/ssb-config.html', 'SSB-Config')} |
67 | ${item(c, '/apis/modules/secret-stack.html', 'Secret-Stack')} |
68 | ${item(c, '/apis/modules/muxrpc.html', 'MuxRPC')} |
69 | ${item(c, '/apis/modules/muxrpcli.html', 'MuxRPCCli')} |
70 | ${item(c, '/apis/modules/mdmanifest.html', 'MDManifest')} |
71 | ${item(c, '/apis/modules/graphmitter.html', 'Graphmitter')} |
72 | </ul>` |
73 | |
74 | module.exports['apis-pull-stream'] = (c) => `<ul class="nav"> |
75 | ${item(c, '/apis/pull-stream/pull-stream.html', 'Pull-Stream')} |
76 | ${item(c, '/apis/pull-stream/core-sources.html', 'Source Functions')} |
77 | ${item(c, '/apis/pull-stream/core-throughs.html', 'Through Functions')} |
78 | ${item(c, '/apis/pull-stream/core-sinks.html', 'Sink Functions')} |
79 | ${item(c, '/apis/pull-stream/pull-stream-to-stream.html', 'Pull-Stream-to-Stream')} |
80 | ${item(c, '/apis/pull-stream/stream-to-pull-stream.html', 'Stream-to-Pull-Stream')} |
81 | ${item(c, '/apis/pull-stream/pull-paramap.html', 'Pull-Paramap')} |
82 | ${item(c, '/apis/pull-stream/pull-cat.html', 'Pull-Cat')} |
83 | ${item(c, '/apis/pull-stream/pull-pushable.html', 'Pull-Pushable')} |
84 | ${item(c, '/apis/pull-stream/pull-notify.html', 'Pull-Notify')} |
85 | ${item(c, '/apis/pull-stream/pull-pause.html', 'Pull-Pause')} |
86 | ${item(c, '/apis/pull-stream/pull-timeout.html', 'Pull-Timeout')} |
87 | ${item(c, '/apis/pull-stream/pull-window.html', 'Pull-Window')} |
88 | ${item(c, '/apis/pull-stream/pull-otherwise.html', 'Pull-Otherwise')} |
89 | ${item(c, '/apis/pull-stream/pull-ws-server.html', 'Pull-WS-Server')} |
90 | </ul>` |
91 | |
92 | module.exports['guides-concepts'] = (c) => `<ul class="nav"> |
93 | ${item(c, '/guides/concepts/intro.html', 'Intro')} |
94 | </ul>` |
95 | |
96 | module.exports['guides-how-to-use-pull-streams'] = (c) => `<ul class="nav"> |
97 | ${item(c, '/guides/how-to-use-pull-streams/intro.html', 'Intro')} |
98 | </ul>` |
99 | |
100 | module.exports['guides-lets-write-a-file-sharing-app'] = (c) => `<ul class="nav"> |
101 | ${item(c, '/guides/lets-write-a-file-sharing-app/intro.html', 'Intro')} |
102 | </ul>` |
103 | |
104 | module.exports['guides-lets-write-a-private-messaging-app'] = (c) => `<ul class="nav"> |
105 | ${item(c, '/guides/lets-write-a-private-messaging-app/intro.html', 'Intro')} |
106 | </ul>` |
107 | |
108 | module.exports['guides-lets-write-a-todo-list-app'] = (c) => `<ul class="nav"> |
109 | ${item(c, '/guides/lets-write-a-todo-list-app/intro.html', 'Intro')} |
110 | </ul>` |
Built with git-ssb-web