Skip to content

Commit

Permalink
refactor: mkdocs moved to docs/main
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Nov 3, 2024
1 parent dff8676 commit 75b47b8
Show file tree
Hide file tree
Showing 40 changed files with 12 additions and 32 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
- uses: actions/checkout@v4

- run: |
cd docs/api/
git clone --depth 1 --branch v2.3.4 https://github.com/jothepro/doxygen-awesome-css.git
git clone --depth 1 --branch v2.3.4 https://github.com/jothepro/doxygen-awesome-css.git docs/api/doxygen-awesome-css
- run : |
mkdir -p site/api
Expand All @@ -41,10 +40,10 @@ jobs:
- uses: actions/checkout@v4

- run: |
pip install -r requirements.txt
pip install -r docs/main/requirements.txt
- run: |
mkdocs build
mkdocs build -f docs/main/mkdocs.yml -d ../../site
- run: |
tar -cvf artifact.tar -C site/ .
Expand Down
21 changes: 0 additions & 21 deletions docs/img/logo_small.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Then, you need to install LeviLamina somewhere. This tutorial is for LeviLamina

Visit [levilamina-mod-template](https://github.com/LiteLDev/levilamina-mod-template) and click `Use this template` to use this template to initialize your mod repository.

![Create from template](img/levilamina-mod-template.png)
![Create from template](levilamina-mod-template.png)

Clone the mod repository to your local machine using Git, and then open it with VSCode. You need to modify some of the files to fill in your mod information.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

访问[levilamina-mod-template](https://github.com/LiteLDev/levilamina-mod-template),点击`Use this template`以使用这个模板初始化你的模组仓库。

![Create from template](img/levilamina-mod-template.png)
![Create from template](levilamina-mod-template.png)

将模组仓库使用Git克隆到本地,然后使用VSCode打开。你需要修改其中的一些文件,填写你的模组信息。

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
12 changes: 7 additions & 5 deletions mkdocs.yml → docs/main/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
site_name: LeviLamina Docs
repo_url: https://github.com/LiteLDev/LeviLamina
docs_dir: .

exclude_docs: |
/mkdocs.yml
/requirements.txt
nav:
- Home: index.md
Expand Down Expand Up @@ -32,16 +37,13 @@ nav:
- Maintainer Guides:
- maintainer_guides/cpp_style_guide.md

exclude_docs: |
api/assets/
theme:
name: material
features:
- navigation.tabs
- navigation.tabs.sticky
favicon: img/favicon.ico
logo: img/logo.svg
favicon: favicon.ico
logo: logo.svg
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 75b47b8

Please sign in to comment.