docs: centralize documentation into helpdoc (#15)
* docs: centralize documentation into helpdoc Problem: documentation was spread across four files (README.md, doc/oil.txt, doc/api.md, doc/recipes.md) with duplication and gaps. User events were undocumented, and adapter docs only lived in the README. Solution: expand doc/oil.txt with five new sections (introduction, requirements, adapters, recipes, events) from existing content. Trim README to a landing page pointing to :help oil. Delete doc/api.md and doc/recipes.md since their content now lives in the helpdoc. Closes: barrettruth/oil.nvim#6 * build: remove docgen pipeline Problem: the Python docgen pipeline (scripts/generate.py, scripts/main.py, nvim_doc_tools) was designed for upstream's doc layout and is incompatible with the centralized helpdoc structure. It overwrites doc/oil.txt entirely and expects sections in README.md that no longer exist. Solution: delete the pipeline scripts (generate.py, main.py, requirements.txt), remove the update_docs CI job, and clean up the Makefile and .gitignore references. Linting and typechecking remain unchanged.
This commit is contained in:
parent
1712b6feb3
commit
3b930636e3
10 changed files with 363 additions and 1361 deletions
26
Makefile
26
Makefile
|
|
@ -4,19 +4,9 @@ help:
|
|||
@echo 'Usage:'
|
||||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
|
||||
|
||||
## all: generate docs, lint, and run tests
|
||||
## all: lint and run tests
|
||||
.PHONY: all
|
||||
all: doc lint test
|
||||
|
||||
venv:
|
||||
python3 -m venv venv
|
||||
venv/bin/pip install -r scripts/requirements.txt
|
||||
|
||||
## doc: generate documentation
|
||||
.PHONY: doc
|
||||
doc: scripts/nvim_doc_tools venv
|
||||
venv/bin/python scripts/main.py generate
|
||||
venv/bin/python scripts/main.py lint
|
||||
all: lint test
|
||||
|
||||
## test: run tests
|
||||
.PHONY: test
|
||||
|
|
@ -25,13 +15,8 @@ test:
|
|||
|
||||
## lint: run linters and LuaLS typechecking
|
||||
.PHONY: lint
|
||||
lint: scripts/nvim-typecheck-action fastlint
|
||||
lint: scripts/nvim-typecheck-action
|
||||
./scripts/nvim-typecheck-action/typecheck.sh --workdir scripts/nvim-typecheck-action lua
|
||||
|
||||
## fastlint: run only fast linters
|
||||
.PHONY: fastlint
|
||||
fastlint: scripts/nvim_doc_tools venv
|
||||
venv/bin/python scripts/main.py lint
|
||||
luacheck lua tests --formatter plain
|
||||
stylua --check lua tests
|
||||
|
||||
|
|
@ -51,9 +36,6 @@ benchmark: scripts/benchmark.nvim
|
|||
nvim --clean -u perf/bootstrap.lua -c 'lua benchmark()'
|
||||
@cat perf/tmp/benchmark.txt
|
||||
|
||||
scripts/nvim_doc_tools:
|
||||
git clone https://github.com/stevearc/nvim_doc_tools scripts/nvim_doc_tools
|
||||
|
||||
scripts/nvim-typecheck-action:
|
||||
git clone https://github.com/stevearc/nvim-typecheck-action scripts/nvim-typecheck-action
|
||||
|
||||
|
|
@ -63,4 +45,4 @@ scripts/benchmark.nvim:
|
|||
## clean: reset the repository to a clean state
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf scripts/nvim_doc_tools scripts/nvim-typecheck-action venv .testenv perf/tmp profile.json
|
||||
rm -rf scripts/nvim-typecheck-action venv .testenv perf/tmp profile.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue