linz / basemaps

NZ’s authoritative and open digital basemap service for LINZ and the public.
https://basemaps.linz.govt.nz
Other
94 stars 17 forks source link

feat: support custom indent sublists BM-1120 #3371

Closed tawera-manaena closed 2 weeks ago

tawera-manaena commented 2 weeks ago

This PR is a sibling of this PR in the basemaps-mkdocs repository.


Problem

When formatting markdown (.md) files in Visual Studio Code, sublists are lost due to LINZ's formatting rules around how many spaces prescribe a tab.

Solution

I have identified a markdown extension called mdx_truly_sane_lists, which can solve the problem. The extension allows us to override the number of spaces required for MkDocs to preserve a sublist item from 4 spaces to 2 spaces, inline with LINZ's Prettier formatting rules.

Modifications

Verification

Wentao-Kuang commented 2 weeks ago

The build-doc deployment seems broken in CI/CD

tawera-manaena commented 2 weeks ago

The build-doc deployment seems broken in CI/CD

I anticipate that at the moment. The sibling PR will need to be approved first as it updates the basemaps-mkdocs image as required for this PR to pass the checks. Happy to explain any concerns.

Update

The sibling PR has been approved and merged into the basemaps-mkdocs master branch with a new release. The previously failing check now succeeds. 🎉