Skip to content

Commit d4e7398

Browse files
committed
Move to zensical
Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Remove mkdocs yml and build files Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> Signed-off-by: Aidan Reilly <aireilly@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED Signed-off-by: Aidan Reilly <aireilly@redhat.com>
1 parent e6fdd06 commit d4e7398

File tree

12 files changed

+695
-367
lines changed

12 files changed

+695
-367
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ venv.bak/
128128
/site
129129
docs/.cache/*
130130

131+
# zensical docs build (generated by pre-build scripts)
132+
docs/api/llmcompressor/
133+
docs/examples/
134+
docs/experimental/
135+
docs/developer/code-of-conduct.md
136+
docs/developer/contributing.md
137+
131138
# mypy
132139
.mypy_cache/
133140
### Example user template template

.readthedocs.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
# Read the Docs configuration file
2-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3-
4-
# Required
51
version: 2
62

7-
# Set the OS, Python version, and other tools you might need
83
build:
94
os: ubuntu-24.04
105
tools:
116
python: "3.12"
12-
13-
# Build documentation with Mkdocs
14-
mkdocs:
15-
configuration: mkdocs.yml
16-
17-
python:
18-
install:
19-
- method: pip
20-
path: .
21-
extra_requirements:
22-
- dev
7+
jobs:
8+
install:
9+
- pip install -e ".[dev]"
10+
build:
11+
html:
12+
- python docs/scripts/zensical_gen_files.py
13+
- zensical build
14+
post_build:
15+
- mkdir -p $READTHEDOCS_OUTPUT/html/
16+
- cp --recursive site/* $READTHEDOCS_OUTPUT/html/

docs/.nav.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
nav:
22
- Home: index.md
33
- Why use LLM Compressor?: steps/why-llmcompressor.md
4-
- Compresssing your model, step-by-step:
4+
- Compressing your model, step-by-step:
55
- Choosing your model: steps/choosing-model.md
66
- Choosing the right compression scheme: steps/choosing-scheme.md
77
- Choosing the right compression algorithm: steps/choosing-algo.md

docs/DEVELOPMENT.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Getting started with LLM Compressor docs
2+
3+
```bash
4+
cd docs
5+
```
6+
7+
- Install the dependencies:
8+
9+
```bash
10+
make install
11+
```
12+
13+
- Clean the previous build (optional but recommended):
14+
15+
```bash
16+
make clean
17+
```
18+
19+
- Generate docs content (files, API references, and navigation):
20+
21+
```bash
22+
make gen
23+
```
24+
25+
- Serve the docs locally (runs `gen` automatically):
26+
27+
```bash
28+
make serve
29+
```
30+
31+
This will start a local server. You can now open your browser and view the documentation.
32+
33+
- Build the static site (runs `gen` automatically):
34+
35+
```bash
36+
make build
37+
```
38+
39+
- List all available targets:
40+
41+
```bash
42+
make help
43+
```

docs/Makefile

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
# Minimal mkdocs makefile
1+
# Minimal zensical makefile
22

3-
PYTHON := python3
4-
MKDOCS_CMD := mkdocs
5-
MKDOCS_CONF := ../mkdocs.yml
3+
ZENSICAL_CMD := zensical
4+
ZENSICAL_CONF := ../zensical.toml
65

7-
.PHONY: help install serve build clean
6+
.PHONY: help install gen serve build clean
87

98
help:
109
@echo "Available targets:"
1110
@echo " install Install dependencies globally"
11+
@echo " gen Generate docs content (files + API + nav)"
1212
@echo " serve Serve docs locally"
1313
@echo " build Build static site"
1414
@echo " clean Remove build artifacts"
1515

1616
install:
1717
pip install -e "../[dev]"
1818

19-
serve:
20-
$(MKDOCS_CMD) serve --livereload -f $(MKDOCS_CONF)
19+
gen:
20+
cd .. && python docs/scripts/zensical_gen_files.py
2121

22-
build:
23-
$(MKDOCS_CMD) build -f $(MKDOCS_CONF)
22+
serve: gen
23+
cd .. && $(ZENSICAL_CMD) serve
24+
25+
build: gen
26+
cd .. && $(ZENSICAL_CMD) build
2427

2528
clean:
26-
rm -rf site/ .cache/
29+
rm -rf site/ .cache/ api/llmcompressor/
30+
rm -rf examples/ experimental/
31+
rm -f developer/code-of-conduct.md developer/contributing.md
32+
cd .. && python3 docs/scripts/zensical_gen_files.py --clean

docs/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/scripts/gen_files.py

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)