git ssb

2+

cel / scuttlebot.io



Tree: 3ed513c33a63c4dec6c04e26770a621df61cc360

Files: 3ed513c33a63c4dec6c04e26770a621df61cc360 / tmpl / docs / social / join-a-pub.html.js

1164 bytesRaw
1var com = require('../../com.part')
2var page = require('../../page.part')
3
4module.exports = () => page({
5 title: 'Join a Pub',
6 section: 'docs',
7 tab: 'docs-social',
8 path :'/docs/social/join-a-pub.html',
9 content: `
10 <p>
11 If you want to connect with users across the net, you need to be followed by a Pub server.
12 This is sometimes called "joining" a Pub.
13 </p>
14 <h2>Join a Pub</h2>
15 <p>
16 First get an invite-code from a Pub operator, or <a href="/docs/social/create-a-pub.html">create your own pub.</a>
17 Then:
18 </p>
19 ${ com.code({ js: jsSnippet, bash: bashSnippet }) }
20 <p>
21 Your Scuttlebot will now connect to, and sync with, the Pub. Other users can sync with the pub to receive your feed.
22 </p>
23
24 <p class="next"><a href="/docs/social/create-a-pub.html">Create a Pub</a></p>
25 <ul class="see-also">
26 <li><a href="/modules/scuttlebot-invite.html">Scuttlebot.Invite API</a></li>
27 <li><a href="/docs/social/social-network.html">Social Network</a></li>
28 </ul>
29 `
30})
31
32
33var jsSnippet = `
34sbot.invite.accept(code, function (err) {
35 // ...
36})
37`
38
39var bashSnippet = `
40sbot invite.accept {code}
41`

Built with git-ssb-web