mirror of
https://github.com/InsanusMokrassar/docs.git
synced 2024-11-26 03:58:55 +00:00
commit
def6aa9b8f
@ -3,15 +3,14 @@
|
||||
{
|
||||
"type": "command",
|
||||
"name": "Rebuild",
|
||||
"program": "mkdocs",
|
||||
"args": ["build"],
|
||||
"program": "poetry",
|
||||
"args": ["run", "mkdocs", "build"],
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"name": "Serve",
|
||||
"program": "mkdocs",
|
||||
"args": ["serve"],
|
||||
"program": "poetry",
|
||||
"args": ["run", "mkdocs", "serve"],
|
||||
},
|
||||
|
||||
]
|
||||
}
|
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@ -10,16 +10,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material pymdown-extensions
|
||||
|
||||
- name: Install Poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
|
||||
- name: Build
|
||||
run: mkdocs build
|
||||
run: poetry run mkdocs build
|
||||
|
||||
- name: Publish
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
|
29
README.md
29
README.md
@ -1,25 +1,20 @@
|
||||
# docs
|
||||
|
||||
It is documentation repository for the projects of [InsanusMokrassar](https://github.com/InsanusMokrassar). In case you wish to interact with that lib localy, you will need to install dependnecies and mkdocs:
|
||||
It is a documentation repository for the projects of [InsanusMokrassar](https://github.com/InsanusMokrassar).
|
||||
|
||||
## Running locally
|
||||
|
||||
For the ease of dependencies management, this repository uses [Poetry](https://python-poetry.org), a Python project & dependencies manager.
|
||||
In case you wish to interact with these docs locally, make sure to [install](https://python-poetry.org/docs/#installation) it first.
|
||||
|
||||
In `Fleet` you may use [these configs](https://github.com/InsanusMokrassar/docs/blob/master/.fleet/run.json) to work with the repo.
|
||||
|
||||
To build or run it in vanilla terminal, use the following commands:
|
||||
|
||||
```bash
|
||||
pip install mkdocs markdown-callouts mkdocs-autorefs mkdocs-include-dir-to-nav mkdocs-material pymdown-extensions
|
||||
poetry run mkdocs build # Just build the site
|
||||
```
|
||||
|
||||
**The snippet above can be outdated. See [publish workflow](https://github.com/InsanusMokrassar/docs/blob/master/.github/workflows/publish.yml) to be sure about building steps**
|
||||
|
||||
## Running and build
|
||||
|
||||
In `Fleet` you may use [these configs](https://github.com/InsanusMokrassar/docs/blob/master/.fleet/run.json). Localy there are several common options for build:
|
||||
|
||||
```bash
|
||||
mkdocs build
|
||||
poetry run mkdocs serve # Run a local server with the site
|
||||
```
|
||||
|
||||
^ Will build mkdocs
|
||||
|
||||
```bash
|
||||
mkdocs serve
|
||||
```
|
||||
|
||||
^ Will continuously build __until first failure in build__
|
||||
|
20
pyproject.toml
Normal file
20
pyproject.toml
Normal file
@ -0,0 +1,20 @@
|
||||
[tool.poetry]
|
||||
name = "docs"
|
||||
version = "1.0.0"
|
||||
description = "Documentation for InsanusMokrassar's projects"
|
||||
authors = ["InsanusMokrassar"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "3.8.10"
|
||||
mkdocs = "^1.4.3"
|
||||
markdown-callouts = "^0.3.0"
|
||||
mkdocs-autorefs = "^0.4.1"
|
||||
mkdocs-include-dir-to-nav = "^1.2.0"
|
||||
mkdocs-material = "^9.1.15"
|
||||
pymdown-extensions = "^10.0.1"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Reference in New Issue
Block a user