Update docs/configuring-playbook-cactus-comments.md: replace the placeholders for the site name

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
Suguru Hirahara 2025-01-26 02:51:19 +09:00
parent 7f13747e82
commit f2083aa8a7
No known key found for this signature in database
GPG Key ID: E4F9743DAB4B7B75

View File

@ -91,7 +91,7 @@ Upon starting Cactus Comments, a `bot.cactusbot` user account is created automat
To get started, send `help` to the `@bot.cactusbot:example.com` bot to confirm it's working. To get started, send `help` to the `@bot.cactusbot:example.com` bot to confirm it's working.
Then, register a site by sending `register <YourSiteName>` (where `<YourSiteName>` is a unique identifier you choose. It does not have to match your domain). You will then be invited into a moderation room. Then, register a site by sending `register YOUR_SITE_NAME_HERE` (where `YOUR_SITE_NAME_HERE` is a unique identifier you choose. It does not have to match your domain). You will then be invited into a moderation room.
Now you are good to go and can embed the comment section on your website! Now you are good to go and can embed the comment section on your website!
@ -105,7 +105,7 @@ After including the JavaScript and CSS asset files, insert a `<div>` where you'd
<div id="comment-section"></div> <div id="comment-section"></div>
```` ````
Then, you need to initialize the comment section. Make sure to replace `example.com` with your base domain and `<YourSiteName>` with the one that has been registered above: Then, you need to initialize the comment section. Make sure to replace `example.com` with your base domain and `YOUR_SITE_NAME_HERE` with the one that has been registered above:
```html ```html
<script> <script>
@ -113,7 +113,7 @@ initComments({
node: document.getElementById("comment-section"), node: document.getElementById("comment-section"),
defaultHomeserverUrl: "https://matrix.example.com:8448", defaultHomeserverUrl: "https://matrix.example.com:8448",
serverName: "example.com", serverName: "example.com",
siteName: "<YourSiteName>", siteName: "YOUR_SITE_NAME_HERE",
commentSectionId: "1" commentSectionId: "1"
}) })
</script> </script>