Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitAuto: 建议支持多版本 #5723

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 16 additions & 0 deletions docs/versioned_conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
import sys
from sphinx_multiversion import __version__

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx_multiversion',
]

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = 'DaoCloud Documentation'
9 changes: 9 additions & 0 deletions scripts/build_versioned_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# This script builds the documentation using the versioned configuration.

# Navigate to the docs directory
cd docs

# Build the documentation with versioning support
sphinx-build -b html -c versioned_conf.py . _build/html
Loading