.agents/skills/learn-site-structure/recipes/INDEX.md
Step-by-step recipes for the most common tasks an author / maintainer performs against the Learn site.
| Recipe | When to use |
|---|---|
add-doc-page.md | Adding a brand-new page to Learn. |
move-doc-page.md | Moving a page to a different sidebar location (different parent). |
rename-doc-page.md | Renaming a page (changes URL slug). |
delete-doc-page.md | Unpublishing a page. The only recipe that requires manual surgery. |
Every recipe assumes the source repo (almost always
netdata/netdata, this repo) is your edit target. The map
file <repo>/docs/.map/map.yaml is the lever.
<repo>/docs/.map/map.yaml,
plus the corresponding .md files in source repos.netdata/netdata master, expect a 0-3-hour delay before
the ingest PR opens in the learn repo.The cheapest way to verify your map.yaml change works:
cd ${NETDATA_REPOS_DIR}/learn
# Set up venv once.
python3 -m venv venv && . venv/bin/activate
pip install -r .learn_environment/ingest-requirements.txt
# Test against your local netdata clone.
python3 ingest/ingest.py --local-repo netdata:<repo> \
--ignore-on-prem-repo --fail-links-netdata
After ingest produces output in
${NETDATA_REPOS_DIR}/learn/docs/, browse it with the dev
server:
cd ${NETDATA_REPOS_DIR}/learn
yarn start # runs Docusaurus dev server, opens browser
../mapping.md for the source-to-URL computation.../pipeline.md for what runs in CI.../authoring-boundary.md to confirm where to edit.../pitfalls-and-gotchas.md BEFORE assuming the
pipeline does the obvious thing.../how-tos/<slug>.md and add it to
../how-tos/INDEX.md. This rule is mandatory; see
../SKILL.md "Live how-to rule".