Documentation gaps

Places where the repository would benefit from written documentation.

D1 — No top-level README.md

The repo root has no README.md. A newcomer cannot tell:

  • what this repo is (a personal blog + the automation that deploys it)
  • how to build the site locally
  • how to run the tests (there are none)
  • how the CI/CD pipeline works
  • where the Ansible playbooks live and what they do

Fix: add a root README.md that covers the above at a high level and links to the more detailed docs.

D2 — Two mkdocs.yml files, no explanation

Root mkdocs.yml and br13000/mkdocs.yml both exist. Nothing explains which one is used by which workflow. See B19.

Fix: document the split, or consolidate.

D3 — No CI/CD documentation

.gitlab-ci.yml is the only deploy path, but there is no doc explaining:

  • required CI/CD variables (SSH_PRIVATE_KEY, REMOTE_SERVER_IP, REMOTE_USER)
  • what the draft and main branches do
  • how to roll back a bad deploy
  • why the remote host clones the repo itself (see B16)

Fix: add docs/project/ci-cd.md (or a section in the root README).

D4 — wp2md.py has no usage doc beyond its docstring

The docstring is good, but there is no example of the full workflow: export WordPress → run wp2md.py → review drafts → flip draft: false → run update_blog_index.py → commit. A short "Migrating a WordPress export" doc would help.

Fix: add docs/project/wordpress-migration.md.

D5 — update_blog_index.py front-matter keys are undocumented outside the docstring

The supported keys (featured, featured_order, featured_title, featured_description, featured_until, draft) are only described in the script's docstring. A blog author reading docs/blog.md will not know they exist.

Fix: add a "Writing a post" section to the root README or a docs/project/writing-posts.md.

D6 — br13000/README.md, br13000/notes.md, and br13000/www_setup_notes.md overlap

Three files describe how to set up and sync the site, with different levels of detail and some contradictions (e.g. apache2 vs nginx, mkdocs-material vs mkdocs). A reader does not know which is current.

Fix: consolidate into one br13000/README.md and delete the other two, or clearly label each as "historical".

D7 — br13000/deploy.yml has no companion doc

The playbook provisions Vultr instances, sets up Cloudflare DNS, and configures WireGuard. None of that is documented outside the playbook itself. Required variables (vultr_api_key, cloudflare.email, cloudflare.api_key) are not listed anywhere.

Fix: add br13000/README.md sections for "Provisioning" and "Required variables".

D8 — br13000/requirements.yml and br13000/requirements.txt are not explained

Two requirements files with different formats (Ansible Galaxy vs pip) in the same directory. Nothing says which is for what.

Fix: rename to requirements-ansible.yml and requirements-pip.txt, or document in br13000/README.md.

D9 — No documented Python version for the tooling

wp2md.py needs 3.9+ (see B8). update_blog_index.py uses datetime.strptime and Path only, so 3.6+ is fine. Nothing states a minimum.

Fix: add a python_requires note to the root README and/or a .python-version file.

D10 — No documented way to preview the site locally

br13000/notes.md mentions mkdocs build && mkdocs serve, but the root README (once added) should make this the first thing a contributor sees.

Fix: include in root README.

D11 — No documented secret-handling policy

The repo contains a committed private key (br13000/deploy_key, see O8/B23) and references a .vault_password file (see br13000/ansible.cfg) that is correctly gitignored. There is no written policy on what may be committed and what must live in CI/CD variables or a vault.

Fix: add a "Secrets" section to the root README stating:

  • no private keys in the repo
  • Ansible vault password lives in .vault_password (gitignored)
  • CI/CD secrets live in GitLab CI/CD variables
  • how to rotate a leaked key

D12 — No documented WordPress migration workflow

wp2md.py exists and is well-documented in its docstring, but there is no end-to-end doc: export → convert → review drafts → flip draft: false → regenerate index → commit. See D4.

Fix: add docs/project/wordpress-migration.md.