Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
3f4630e
add example module docs
penutbutterbaby Jan 3, 2026
3c45907
docs(faq): add some basics questions and answers
penutbutterbaby Jan 5, 2026
fe42bb0
docs(style): add guidelines for nested lists formatting in markdown d…
kzndotsh Jan 9, 2026
cb4fc78
docs(roles): update role assignment command syntax for clarity
kzndotsh Jan 9, 2026
c7fe242
docs(templates): add new documentation templates for commands, comman…
kzndotsh Jan 9, 2026
15e74f7
docs(index): add new documentation section for templates and resources
kzndotsh Jan 9, 2026
e843970
docs: update feature documentation for clarity and completeness
kzndotsh Jan 9, 2026
f946272
docs: remove example module documentation
kzndotsh Jan 9, 2026
154e934
docs: expand navigation structure with detailed module and command do…
kzndotsh Jan 9, 2026
492b24f
docs(markdownlint): update configuration for heading rules
kzndotsh Jan 9, 2026
edba537
docs(fun): add Fun module documentation with Random and XKCD commands
kzndotsh Jan 9, 2026
de47b57
docs(info): add comprehensive documentation for Info module and relat…
kzndotsh Jan 9, 2026
add63e4
docs(levels): add comprehensive documentation for Levels module and r…
kzndotsh Jan 9, 2026
8eae6a2
docs(tools): add comprehensive documentation for Tools module and rel…
kzndotsh Jan 9, 2026
1a80c64
docs(modules): restructure and rename User Commands section to Modules
kzndotsh Jan 9, 2026
bc6a82e
docs(snippets): add comprehensive documentation for Snippets module a…
kzndotsh Jan 9, 2026
265c8c5
docs(utility): add comprehensive documentation for Utility module and…
kzndotsh Jan 9, 2026
5f3c9ac
docs(moderation): add comprehensive documentation for Moderation comm…
kzndotsh Jan 9, 2026
429cdc9
docs(config): add comprehensive documentation for Config module and r…
kzndotsh Jan 9, 2026
1f130cd
fix(vscode): disable markdown validation in settings
kzndotsh Jan 9, 2026
5d1ed5e
docs(deslop): add comprehensive documentation for Deslop command
kzndotsh Jan 12, 2026
95c7c7d
docs(templates): add documentation templates guidance for module docu…
kzndotsh Jan 12, 2026
58f3ba3
docs(bookmarks): enhance documentation for bookmarks feature
kzndotsh Jan 12, 2026
ae1d4d8
docs(modules): enhance documentation for various modules and commands
kzndotsh Jan 12, 2026
cf11ce2
feat(documentation): enhance documentation commands with comprehensiv…
kzndotsh Jan 4, 2026
ec4ce01
chore(docs): update Docker installation guide for clarity and consist…
kzndotsh Jan 4, 2026
61868d2
chore(docs): remove filler
kzndotsh Jan 4, 2026
0a3ef0a
refactor(models): simplify timestamp field definitions in TimestampMi…
kzndotsh Jan 4, 2026
2192fd8
refactor(models): remove unnecessary sa_type specifications for datet…
kzndotsh Jan 4, 2026
254e345
refactor(error): streamline error handler configurations by removing …
kzndotsh Jan 4, 2026
24521be
fix(tests): correct usage of column in delete statement for Guild model
kzndotsh Jan 4, 2026
0abe81d
feat(migrations): adjust datetime fields to remove timezone specifica…
kzndotsh Jan 4, 2026
cf1d57f
feat(docs): add comprehensive Deslop documentation for writing standa…
kzndotsh Jan 4, 2026
924a2b1
docs(database): update database configuration documentation for clari…
kzndotsh Jan 4, 2026
0992060
docs(environment): enhance environment configuration documentation fo…
kzndotsh Jan 4, 2026
68ec528
fix(config): update default PostgreSQL password for enhanced security
kzndotsh Jan 4, 2026
dbb5a69
docs(baremetal): update installation instructions for clarity and eff…
kzndotsh Jan 4, 2026
d64edde
chore(deps): lock file maintenance (#1138)
renovate[bot] Jan 6, 2026
38beb7c
chore(deps): lock file maintenance (#1141)
renovate[bot] Jan 12, 2026
fa324e9
fix(models): remove timezone info from datetime fields for consistency
kzndotsh Jan 12, 2026
32ae2a4
docs(server): update documentation for local server configuration and…
kzndotsh Jan 12, 2026
3bf606a
docs: update various documentation files for clarity and consistency
kzndotsh Jan 12, 2026
e929a4f
Merge branch 'main' into fix/docs
kzndotsh Jan 12, 2026
81a5c2d
docs: enhance moderation command documentation with detailed reason p…
kzndotsh Jan 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .cursor/commands/documentation/docs-serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,48 +113,47 @@ Start and manage a local documentation server to preview documentation changes,
## Server Configuration

### Default Settings

- **Port**: 8000 (configurable)
- **Host**: localhost (127.0.0.1)
- **Auto-reload**: Enabled
- **Live-reload**: Browser refresh on file changes
- **Watch**: All documentation source files

### Custom Configuration
- **Port**: Use `--port` flag to specify different port
- **Host**: Use `--host` flag for different host binding
- **No-reload**: Use `--no-reload` to disable auto-reload
- **Verbose**: Use `--verbose` for detailed logging

### Environment Variables
- `DOCS_PORT`: Override default port
- `DOCS_HOST`: Override default host
- `DOCS_RELOAD`: Enable/disable auto-reload
- `DOCS_OPEN`: Auto-open browser on start
- **Dev Address**: Use `--dev-addr` (or `-a`) flag to specify IP address and port (format: `host:port`, default: `localhost:8000`)
- **Open Browser**: Use `--open` (or `-o`) flag to automatically open browser on start
- **Strict Mode**: Use `--strict` (or `-s`) flag for strict mode (not yet supported by zensical)

## Testing Scenarios

### New Content Testing

1. Add new documentation page
2. Verify it appears in navigation
3. Test all links to and from the page
4. Check formatting and styling
5. Verify search includes new content

### Content Updates Testing

1. Modify existing documentation
2. Verify changes appear immediately
3. Check that formatting is preserved
4. Test updated examples and code
5. Verify cross-references still work

### Asset Testing

1. Add new images or media files
2. Verify they display correctly
3. Check different image formats
4. Test responsive image behavior
5. Verify alt text and accessibility

### Configuration Testing

1. Modify site configuration
2. Restart server to apply changes
3. Verify configuration takes effect
Expand All @@ -164,34 +163,39 @@ Start and manage a local documentation server to preview documentation changes,
## Troubleshooting

### Server Won't Start

- Check if port is already in use
- Verify documentation builds successfully
- Check for missing dependencies
- Try different port with `--port` flag
- Try different port with `--dev-addr` flag (e.g., `--dev-addr localhost:3000`)
- Check file permissions

### Pages Don't Load

- Verify build completed successfully
- Check for broken internal links
- Verify file paths are correct
- Check for case sensitivity issues
- Clear browser cache

### Auto-Reload Not Working

- Check file system permissions
- Verify watch functionality is enabled
- Try restarting the server
- Check for file system limitations
- Use manual refresh as fallback

### Styling Issues

- Clear browser cache and reload
- Check for CSS build errors
- Verify static assets are loading
- Check browser developer tools
- Try different browser

### Search Not Working

- Verify search index is built
- Check for JavaScript errors
- Clear browser cache
Expand Down Expand Up @@ -219,6 +223,7 @@ Start and manage a local documentation server to preview documentation changes,
## Examples

### Basic Server Start

```bash
uv run docs serve
# Server starts on http://localhost:8000
Expand All @@ -227,21 +232,24 @@ uv run docs serve
```

### Custom Port and Host

```bash
uv run docs serve --port 3000 --host 0.0.0.0
uv run docs serve --dev-addr 0.0.0.0:3000
# Server accessible on all network interfaces
# Custom port for avoiding conflicts
```

### Development Mode
### Development Mode with Auto-Open

```bash
uv run docs serve --verbose --no-cache
# Detailed logging enabled
# Cache disabled for development
uv run docs serve --open
# Automatically opens browser on start
# Live reload enabled by default
# Immediate reflection of changes
```

### Testing Workflow

1. Start server: `uv run docs serve`
2. Open browser to `http://localhost:8000`
3. Navigate through documentation
Expand All @@ -256,13 +264,12 @@ uv run docs serve --verbose --no-cache
- Related rule: @docs/docs.mdc - Documentation standards and patterns
- Related command: `/update-docs` - Update existing documentation
- Related command: `/generate-docs` - Generate new documentation
- Related guide: [Documentation Development Guide](../../../docs/content/developer/guides/documentation-development.md)

## Additional Notes

- **Development**: Use serve command during active documentation development
- **Testing**: Always test documentation locally before committing changes
- **Performance**: Monitor server performance with large documentation sites
- **Collaboration**: Share local server URL for team review (use `--host 0.0.0.0`)
- **Collaboration**: Share local server URL for team review (use `--dev-addr 0.0.0.0:8000`)
- **Automation**: Consider integrating serve command into development workflows
- **Debugging**: Use verbose mode and browser developer tools for troubleshooting
- **Debugging**: Use browser developer tools and server console output for troubleshooting
14 changes: 14 additions & 0 deletions .cursor/rules/docs/style.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@ This section covers the core writing principles, style guidelines, and formattin
- **UI Elements**: Format as they appear: **Submit**, **User settings**
- **Bold Keywords**: Use `**bold**` for emphasis, `_italics_` sparingly
- **Lists**: Complete sentences, dashes for unordered, bold keywords with colons
- **Nested Lists**: When a numbered list item with bold text is followed by a nested bullet list, include a blank line between the bold text and the nested list for proper rendering:

```markdown
✅ Correct:
1. **Item title**

- Nested bullet item
- Another nested item

❌ Incorrect:
1. **Item title**
- Nested bullet item
- Another nested item
```

### Code Documentation

Expand Down
2 changes: 1 addition & 1 deletion .markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ MD023: true
# MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md024.md
MD024:
# Only check sibling headings
siblings_only: false
siblings_only: true
# MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md025.md
MD025:
# Heading level
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"tag:yaml.org,2002:python/object/apply:pymdownx.slugs.slugify mapping",
"tag:yaml.org,2002:python/name:material.plugins.tags.tag_name_casefold"
],
"markdown.validate.enabled": true,
"markdown.validate.enabled": false,
"editor.wordWrap": "off",
"editor.tabSize": 4,
"editor.detectIndentation": false,
Expand Down
8 changes: 4 additions & 4 deletions docs/content/admin/config/roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ You can also manage role assignments with text commands:
**Assign a role to a rank:**

```text
/config role assign 3 @Moderator
/config role assign rank:3 role:@Moderator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, check if the documentation standard files exist
ls -la docs/*.mdc 2>/dev/null || echo "No .mdc files in docs root"

# Find any .mdc files in the repo
find . -name "*.mdc" -type f | head -20

Repository: allthingslinux/tux

Length of output: 838


🏁 Script executed:

# Check the file in question
if [ -f "docs/content/admin/config/roles.md" ]; then
  echo "=== File exists. Checking lines 59, 65, 123, 137 ==="
  sed -n '50,70p' "docs/content/admin/config/roles.md"
  echo "---"
  sed -n '115,145p' "docs/content/admin/config/roles.md"
else
  echo "File not found at docs/content/admin/config/roles.md"
  # Search for it
  find . -name "roles.md" -type f
fi

Repository: allthingslinux/tux

Length of output: 980


🏁 Script executed:

# Read the documentation standard files
echo "=== syntax.mdc ==="
cat "./.cursor/rules/docs/syntax.mdc"
echo ""
echo "=== style.mdc ==="
cat "./.cursor/rules/docs/style.mdc"
echo ""
echo "=== docs.mdc ==="
cat "./.cursor/rules/docs/docs.mdc"

Repository: allthingslinux/tux

Length of output: 18871


🏁 Script executed:

# Also get more context from the roles.md file around the modified lines
echo "=== Full context around lines 59, 65, 123, 137 ==="
wc -l "docs/content/admin/config/roles.md"
echo "---"
sed -n '45,75p' "docs/content/admin/config/roles.md"
echo "---"
sed -n '110,150p' "docs/content/admin/config/roles.md"

Repository: allthingslinux/tux

Length of output: 1458


🏁 Script executed:

# Check patterns.mdc for command documentation patterns
cat "./.cursor/rules/docs/patterns.mdc" | head -200

Repository: allthingslinux/tux

Length of output: 4312


🏁 Script executed:

# Verify the syntax is consistent across all lines mentioned (59, 65, 123, 137)
sed -n '59p;65p;123p;137p' "docs/content/admin/config/roles.md"

Repository: allthingslinux/tux

Length of output: 233


Add explanation for the <rank_number> placeholder to comply with documentation standards.

The named-parameter syntax is consistently applied across all command examples (e.g., rank:3 role:@Moderator, role:@RoleName), improving clarity. However, per documentation standards, placeholders require explanation. Line 123 uses <rank_number> without defining it. Add a brief explanation such as: "where <rank_number> is the target rank (1-5)" or similar.

🤖 Prompt for AI Agents
In @docs/content/admin/config/roles.md at line 59, The example command "/config
role assign rank:3 role:@Moderator" uses the placeholder <rank_number> but the
docs do not define it; update the Roles documentation to add a brief definition
for <rank_number> (e.g., "where <rank_number> is the target rank (1-5)") near
the example or in the parameter glossary so readers know the valid range and
meaning of the rank parameter.

```

**Remove a role assignment:**

```text
/config role unassign @Moderator
/config role unassign role:@Moderator
```

**List all assignments:**
Expand Down Expand Up @@ -120,7 +120,7 @@ Member (Rank 0) → @Member (everyone starts here)
**Command Method:**

```text
/config role assign <rank_number> @RoleName
/config role assign rank:<rank_number> role:@RoleName
```

### Removing Assignments
Expand All @@ -134,7 +134,7 @@ Member (Rank 0) → @Member (everyone starts here)
**Command Method:**

```text
/config role unassign @RoleName
/config role unassign role:@RoleName
```

### Viewing Assignments
Expand Down
24 changes: 24 additions & 0 deletions docs/content/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,27 @@ icon: material/help-circle-outline
This section is a work in progress. Please help us by contributing to the documentation.

This page contains frequently asked questions and answers about Tux.

## General Questions

**Q:** Will I be able to invite Tux to my server?

**A:** A public bot is planned but for now you can self-host.

**Q:** How can I support Tux?

**A:** For code or documentation you can ask in the [Discord](https://discord.gg/gpmSjcjQxg) or financially on [Open Collective](https://opencollective.com/allthingslinux).

**Q:** Will I be able to use Tux inside Direct Messages?

**A:** We plan to support this.

**Q:** Can you add "X" Feature?

**A:** Open a github issue with the "[FEATURE]" or open a pull-request and we'll think about it.

## Support Questions

**Q:** I need help setting up Tux!

**A:** Feel free to open a Github issue or ask in the [Discord](https://discord.gg/gpmSjcjQxg).
19 changes: 19 additions & 0 deletions docs/content/reference/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Documentation
description: Templates and resources for creating consistent documentation for Tux
tags:
- reference
- docs
- documentation
---

# Documentation

This section contains templates and resources for creating consistent documentation for Tux.

## Templates

- [Module Template](templates/module-template.md)
- [Command Template](templates/command-template.md)
- [Command Group Template](templates/command-group-template.md)
- [Feature Template](templates/feature-template.md)
Loading
Loading