git ssb

2+

cel / scuttlebot.io



Tree: 86cfe7c6ec39c87ba43e41c3ed13c7902bf07fd8

Files: 86cfe7c6ec39c87ba43e41c3ed13c7902bf07fd8 / tmpl / docs / social / join-a-pub.html.js

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

Built with git-ssb-web