Skip to content

Commit

Permalink
docs!: rewrite side bar structures
Browse files Browse the repository at this point in the history
  • Loading branch information
HsiangNianian committed Jul 6, 2024
1 parent 7e655c9 commit da32df8
Show file tree
Hide file tree
Showing 8 changed files with 685 additions and 15 deletions.
7 changes: 6 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ SOURCEDIR = source
BUILDDIR = _build
SPHINXINTL ?= sphinx-intl
lang ?= zh_CN
SPHINX ?= sphinx

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -23,4 +24,8 @@ help:

# update translation command
translate:
@$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O)
@$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O)

# build docs
docs build:
@pdm run $(SPHINXBUILD) "$(SOURCEDIR)" "$(BUILDDIR)" $(O)
663 changes: 663 additions & 0 deletions docs/source/COPYING.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/source/COPYING.rst

This file was deleted.

4 changes: 4 additions & 0 deletions docs/source/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!-- max_depth: 1 -->

```{include} ../../CHANGELOG.md
```
3 changes: 0 additions & 3 deletions docs/source/changelog.rst

This file was deleted.

10 changes: 6 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ HydroRollCore
.. toctree::
:hidden:


快速开始 <pages/quick-start.rst>


.. toctree::
:caption: Development
:hidden:
:caption: Development
:hidden:


贡献指南 <pages/contributing.rst>
变更日志 <changelog.rst>
COPYING <COPYING.rst>
变更日志 <changelog>
COPYING <COPYING>
10 changes: 5 additions & 5 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module-name = "hrc.LibCore"
docs = [
"furo>=2024.1.29",
"sphinx-autobuild>=2024.4.16",
"myst-parser>=2.0.0",
"myst-parser>=3.0.1",
"sphinx>=7.3.7",
"tomli>=2.0.1",
"sphinx-design>=0.5.0",
Expand Down

0 comments on commit da32df8

Please sign in to comment.