Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Motivation As a Basemaps developer, when I run Basemaps locally using the [developer guide][docs/dev-guide], assets (glyphs and sprites) don't load when enabling the labels feature or viewing the Topographic layer. - This pull request updates the [developer guide][docs/dev-guide] documentation to include details about the additional parameters required to serve vector tile imagery with assets. - This pull request also includes some minor cleanup and re-formatting of the existing [developer guide][docs/dev-guide] documentation. ### Modifications #### Additions 1. Adds a [call-out][ref/call-out] to the [**How to run `basemaps` locally**][docs/run-basemaps-locally] page describing how to build Basemaps in _watch mode_. [[commit]][commit/watch-mode] 2. Adds a new page titled **"Bundle the `basemaps` assets archive"** to the [CLI methods][docs/dev-guide] section. The new page describes how to generate the **basemaps** bundled assets archive using the **basemaps/cli** package. [[commit]][commit/assets-usage-wip-1] 3. Adds details to the [Server methods][docs/dev-guide] section's [**Serve `basemaps` using a bundled config file**][docs/bundled-config-file] page describing the value of the assets archive and why you may need to use it. [[commit]][commit/assets-usage-wip-2] 4. Adds details to the new **"Bundle the `basemaps` assets archive"** page describing how to generate the asset files (glyph files and sprite sheets) required to bundle the assets archive. [[commit]][commit/assets-usage] #### Revisions 1. Removes unused internal links from various documentation pages. [[commit]][commit/internal-links] 2. Updates code example commands to reference `build` directories instead of `bin` directories. [[commit]][commit/build-bin] 3. Corrects the description and usage of the `--output` parameter when running the **basemaps/cli** package. [[commit]][commit/output-desc] 4. Fixes minor spelling errors and formatting inconsistencies for various documentation pages. [[commit]][commit/formatting] ### Verification You can view the updated [developer guide][docs/dev-guide] documentation by following these steps. 1. Switch to this branch (`docs/dev-guide-revison`). 2. Run the following command from the root of the repository: ```bash # serve the Basemaps docs locally docker run --rm \ -v $PWD:/docs \ -p 8000:8000 \ ghcr.io/linz/basemaps-mkdocs:v1 serve -a 0.0.0.0:8000 ``` <!-- internal links --> [commit/watch-mode]: 3df0686 [commit/assets-usage-wip-1]: c118d83#diff-a3ddf2f482248ee60c9134a7a95c6e6de6023c852c9873b9a6d234671abb6fd1 [commit/assets-usage-wip-2]: c118d83#diff-4e24348b01ae8e99d94927c006a6fc7f52a762f519bd9876ccb3126b83ef542a [commit/assets-usage]: 03b5a3e [commit/internal-links]: 7f7c9a6 [commit/build-bin]: ec967f0 [commit/output-desc]: b30435d [commit/formatting]: 1e769da <!-- external links --> [docs/dev-guide]: https://basemaps.linz.govt.nz/docs/developer-guide/ [docs/run-basemaps-locally]: https://basemaps.linz.govt.nz/docs/developer-guide/run-basemaps-locally/ [docs/bundled-config-file]: https://basemaps.linz.govt.nz/docs/developer-guide/server-methods/serve-basemaps-with-bundled-config-file/ [ref/call-out]: https://squidfunk.github.io/mkdocs-material/reference/admonitions/
- Loading branch information