diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-10 18:14:13 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-10 18:14:13 +0300 |
| commit | 644c8b8a143402326fee572ae284321073921d7c (patch) | |
| tree | 25cd211c610f165f75e1da1040d7cd758b56f8e5 /docs/Makefile | |
| parent | d7e63e1923814a791dadf93453e8c090d26ca896 (diff) | |
| parent | 3a544f6f73dadb0e50f32a4c73e7efa3772b4f49 (diff) | |
| download | vyos-documentation-644c8b8a143402326fee572ae284321073921d7c.tar.gz vyos-documentation-644c8b8a143402326fee572ae284321073921d7c.zip | |
Merge pull request #1940 from vyos/yuriy/remove-rst-swap-mechanism
chore: remove RST swap mechanism, archive rst-*.rst under docs/_rst_legacy/
Diffstat (limited to 'docs/Makefile')
| -rw-r--r-- | docs/Makefile | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/docs/Makefile b/docs/Makefile index d27936c2..8e6a8a45 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -11,38 +11,26 @@ BUILDDIR = _build AUTOHOST = 0.0.0.0 AUTOPORT = 8000 -SWAP = python3 ../scripts/swap_sources.py - # Put it first so that "make" without argument is like "make help". help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -.PHONY: help Makefile swap restore html dirhtml pdf livehtml defaultvalue - -swap: - $(SWAP) --swap - -restore: - $(SWAP) --restore +.PHONY: help Makefile html dirhtml pdf livehtml defaultvalue -html: swap - @trap '$(SWAP) --restore' EXIT; \ - $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +html: + $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -dirhtml: swap - @trap '$(SWAP) --restore' EXIT; \ - $(SPHINXBUILD) -M dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +dirhtml: + $(SPHINXBUILD) -M dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -pdf: swap - @trap '$(SWAP) --restore' EXIT; \ - $(SPHINXBUILD) -M latexpdf "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +pdf: + $(SPHINXBUILD) -M latexpdf "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) -livehtml: swap - @trap '$(SWAP) --restore' EXIT; \ - sphinx-autobuild --host $(AUTOHOST) --port $(AUTOPORT) \ +livehtml: + sphinx-autobuild --host $(AUTOHOST) --port $(AUTOPORT) \ --ignore '$(BUILDDIR)/**' \ --ignore '**/_build/**' \ - --ignore '**/md-*' \ + --ignore '**/_rst_legacy/**' \ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) defaultvalue: export VYOS_DEFAULT=True |
