Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
pip install coverage tblib

- name: Build documentation
run: mkdocs build
run: zensical build

- name: Collect static files
run: python netbox/manage.py collectstatic --no-input
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ repos:
language: system
pass_filenames: false
types: [python]
- id: mkdocs-build
- id: zensical-build
name: "Build documentation"
description: "Build the documentation with mkdocs"
description: "Build the documentation with Zensical"
files: 'docs/'
entry: mkdocs build
entry: zensical build
language: system
pass_filenames: false
- id: yarn-validate
Expand Down
12 changes: 6 additions & 6 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 2
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.12"
mkdocs:
configuration: mkdocs.yml
python:
install:
- requirements: requirements.txt
commands:
- pip install -r requirements.txt
- python -m zensical build --config-file mkdocs.yml
- mkdir -p $READTHEDOCS_OUTPUT/html/
- cp -r netbox/project-static/docs/* $READTHEDOCS_OUTPUT/html/
8 changes: 4 additions & 4 deletions base_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ jsonschema
# https://python-markdown.github.io/changelog/
Markdown

# MkDocs
# https://github.com/mkdocs/mkdocs/releases
mkdocs<2.0

# MkDocs Material theme (for documentation build)
# https://squidfunk.github.io/mkdocs-material/changelog/
mkdocs-material
Expand Down Expand Up @@ -178,3 +174,7 @@ tablib
# Timezone data (required by django-timezone-field on Python 3.9+)
# https://github.com/python/tzdata/blob/master/NEWS.md
tzdata

# Documentation builder (succeeds mkdocs)
# https://github.com/zensical/zensical
zensical
18 changes: 0 additions & 18 deletions docs/_theme/partials/copyright.html

This file was deleted.

2 changes: 1 addition & 1 deletion docs/development/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ NetBox uses [`pre-commit`](https://pre-commit.com/) to automatically validate co
* Run the `ruff` Python linter
* Run Django's internal system check
* Check for missing database migrations
* Validate any changes to the documentation with `mkdocs`
* Validate any changes to the documentation with `zensical`
* Validate Typescript & Sass styling with `yarn`
* Ensure that any modified static front end assets have been recompiled

Expand Down
2 changes: 1 addition & 1 deletion docs/development/release-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ If a new Django release is adopted or other major dependencies (Python, PostgreS
Start the documentation server and navigate to the current version of the installation docs:

```no-highlight
mkdocs serve
zensical serve
```

Follow these instructions to perform a new installation of NetBox in a temporary environment. This process must not be automated: The goal of this step is to catch any errors or omissions in the documentation and ensure that it is kept up to date for each release. Make any necessary changes to the documentation before proceeding with the release.
Expand Down
4 changes: 0 additions & 4 deletions docs/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ img {
margin-right: auto;
}

.md-content img {
background-color: rgba(255, 255, 255, 0.64);
}

/* Tables */
table {
margin-bottom: 24px;
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Note: NetBox has migrated from MkDocs to Zensical
site_name: NetBox Documentation
site_dir: netbox/project-static/docs
site_url: https://docs.netbox.dev/
Expand Down
1 change: 0 additions & 1 deletion netbox/project-static/docs/.info

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ gunicorn==25.1.0
Jinja2==3.1.6
jsonschema==4.26.0
Markdown==3.10.2
mkdocs==1.6.1
mkdocs-material==9.7.5
mkdocstrings==1.0.3
mkdocstrings-python==2.0.3
Expand All @@ -42,3 +41,4 @@ strawberry-graphql-django==0.82.0
svgwrite==1.4.3
tablib==3.9.0
tzdata==2025.3
zensical==0.0.28
2 changes: 1 addition & 1 deletion upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ echo "Checking for missing cable paths ($COMMAND)..."
eval $COMMAND || exit 1

# Build the local documentation
COMMAND="mkdocs build"
COMMAND="zensical build"
echo "Building documentation ($COMMAND)..."
eval $COMMAND || exit 1

Expand Down
Loading