diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b23a03b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + + - uses: jdx/mise-action@v4 + + - run: bundle install + + # -c keeps going after a failure so one run shows every problem. + - name: Check + env: + MISE_TASK_OUTPUT: interleave + run: mise run -c check diff --git a/.gitignore b/.gitignore index ca35be0..f4794cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,16 @@ +# Jekyll build output and caches _site +.jekyll-cache +.jekyll-metadata + +# Bundler +.bundle +vendor/bundle + +# Editor and agent tooling +.vscode +.ruby-lsp +.claude + +# macOS +.DS_Store diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml new file mode 100644 index 0000000..b828a7b --- /dev/null +++ b/.markdownlint-cli2.yaml @@ -0,0 +1,6 @@ +ignores: + - "_site/**" + - "vendor/**" + - ".claude/**" + - "CLAUDE.md" # import shim (@AGENTS.md), not prose + - "devlog.md" # historical record, kept as written diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..b203f9f --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,3 @@ +MD013: false # line-length +MD025: false # single-title/single-h1: Jekyll pages put the title in front matter +MD033: false # no-inline-html: pages embed images, video and badges as HTML diff --git a/.mise.toml b/.mise.toml index acbbe80..af621e1 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,14 +1,43 @@ [tools] -ruby = "3.2.2" # Cloudflare Build System version 2 using Ruby 3.2.2 +ruby = "4.0.7" +node = "24.4.1" +"npm:cspell" = "9.1.5" +"npm:markdownlint-cli2" = "0.22.1" +"gem:html-proofer" = "5.2.1" [tasks.install] run = "bundle install" [tasks.dev] -run = "bundle exec jekyll serve --livereload --open-url --port 4001" +run = "bundle exec jekyll serve --livereload --livereload-port 35703 --open-url --port 4003" + +[tasks.build] +run = "bundle exec jekyll build --quiet" + +[tasks.spell] +run = "cspell lint --no-progress ." + +[tasks.markdownlint] +run = """ +out=$(markdownlint-cli2 '**/*.md' 2>&1) && echo "Markdown lint passed" || { echo "$out"; exit 1; } +""" + +# Internal links only. External sites rate-limit and flake; check them by hand +# with `htmlproofer _site` when it matters. +[tasks.links] +depends = ["build"] +run = "htmlproofer _site --disable-external --no-check-internal-hash" + +[tasks.check] +depends = ["spell", "markdownlint", "links"] + +# Run after a deploy lands. Cloudflare Pages builds on push to main. +[tasks.verify] +run = """ +curl -fsS https://landnav.app/ | grep -q "Land Nav" && echo "landnav.app is up" +test "$(curl -s -o /dev/null -w '%{http_code}' https://landnav.app/no-such-page/)" = 404 && echo "404 page works" +""" [tasks.deploy] +depends = ["check"] run = "git push" - -[settings] -experimental = true diff --git a/404.md b/404.md index bfd21fb..a3f26dd 100755 --- a/404.md +++ b/404.md @@ -1,7 +1,6 @@ --- title: 404 Not Found +permalink: /404.html --- -# {{ page.title }} - You are at a page that doesn't exist. [Go home?](/) diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..4b83d7e --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,72 @@ +# Agent Notes + +<!-- cspell:ignore onnav -- the onNav Marine bundle ID --> + +Background for AI agents working in this repo. + +## What this is + +The marketing site for Land Nav, a GPS and offline maps app for iPhone and iPad, live at +[landnav.app](https://landnav.app). A Jekyll site on Cloudflare Pages. The app itself lives +in a separate repo, `LandNav`. + +**The repo and the site are both public.** Anything committed here is published. + +Keep it minimal. Don't add gems, plugins, pages or build steps unless asked. + +## Commands + +```sh +mise run install # bundle install +mise run dev # serve on :4003 with livereload +mise run check # build + spell + markdownlint + internal links +mise run verify # curl the live site after a deploy +mise run deploy # check, then git push +``` + +**Read the counts, not just the exit code.** html-proofer prints `Ran on N files` and cspell +prints `Files checked: N`. A green run over zero files checked nothing. + +## Deploys + +Cloudflare Pages project `landnav-website` builds every push. `main` goes to production; +other branches get a preview URL. The build runs `bundle exec jekyll build` with +`RUBY_VERSION` set in the Cloudflare project, so a Ruby bump means changing `Gemfile`, +`.mise.toml` and that variable together. + +GitHub Actions runs `mise run -c check` on pushes and PRs. It doesn't block Cloudflare. + +## Layout + +- `_config.yml` holds the site name, description, icon, copyright start year and author. + The layouts read them; don't hard-code them in HTML. +- `_layouts/page.html` is the main layout. `_includes/head.html` has the meta and Open Graph + tags; a page can override the description with `description:` and the preview image with + `ogimage:` in front matter. +- `index.md`, `support.md`, `privacy.md`, `404.md`. +- `whatsnew/` has one page per release (`whatsnew/1.0.1.md`) and an index. The app opens + `https://landnav.app/whatsnew/<version>`, so keep those URLs stable and add a page before + a release ships. Mark an unreleased version "(In Development)" on the index. +- `share/` uses `_layouts/map.html` and `assets/js/map.js`: a Leaflet map that pins the + `?ll=lat,lon` query. `.well-known/apple-app-site-association` claims `/share/*` for the + onNav Marine app (`com.onnav.ios.marine`), not Land Nav. Check with Gerry before changing + either. +- `devlog.md` is a historical record. Leave its wording and typos alone; checks skip it. +- `assets/css/pico.min.css` is Pico 1.5, copied in rather than loaded from a CDN. + +## Writing + +- Claims must match the released app. Check the App Store version before saying a feature + or release has shipped. + +## Suppressions + +Suppress a check inline, with a reason, in the file that provoked it: +`<!-- cspell:ignore word -->` or `<!-- markdownlint-disable-next-line MD0xx -->`. Move a +word to `cspell.config.yaml` only once a second file needs it. + +## Branches, issues and PRs + +- Branch names are flat and short: `<issue>-<slug>`, no `claude/` prefix. +- Issue and PR bodies aren't hard-wrapped. +- Squash-merge only. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..43c994c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/Gemfile b/Gemfile index f4eee3e..ef4510c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -ruby "3.2.2" +ruby "4.0.7" source "https://rubygems.org" diff --git a/Gemfile.lock b/Gemfile.lock index aa48d99..e1af3d7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,24 +1,58 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.8.7) - public_suffix (>= 2.0.2, < 7.0) - base64 (0.2.0) - bigdecimal (3.1.9) + addressable (2.9.0) + public_suffix (>= 2.0.2, < 8.0) + base64 (0.3.0) + bigdecimal (4.1.3) colorator (1.1.0) - concurrent-ruby (1.3.5) - csv (3.3.2) + concurrent-ruby (1.3.8) + csv (3.3.6) em-websocket (0.5.3) eventmachine (>= 0.12.9) http_parser.rb (~> 0) eventmachine (1.2.7) - ffi (1.17.1-arm64-darwin) + ffi (1.17.4) + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-aarch64-linux-musl) + ffi (1.17.4-arm-linux-gnu) + ffi (1.17.4-arm-linux-musl) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86-linux-gnu) + ffi (1.17.4-x86-linux-musl) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) + ffi (1.17.4-x86_64-linux-musl) forwardable-extended (2.6.0) - google-protobuf (4.29.3-arm64-darwin) + google-protobuf (4.36.2) bigdecimal - rake (>= 13) - http_parser.rb (0.8.0) - i18n (1.14.7) + rake (~> 13.3) + google-protobuf (4.36.2-aarch64-linux-gnu) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-aarch64-linux-musl) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-arm64-darwin) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-x86-linux-gnu) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-x86-linux-musl) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-x86_64-darwin) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-x86_64-linux-gnu) + bigdecimal + rake (~> 13.3) + google-protobuf (4.36.2-x86_64-linux-musl) + bigdecimal + rake (~> 13.3) + http_parser.rb (0.8.1) + i18n (1.15.2) concurrent-ruby (~> 1.0) jekyll (4.4.1) addressable (~> 2.4) @@ -43,35 +77,86 @@ GEM sass-embedded (~> 1.75) jekyll-watch (2.2.1) listen (~> 3.0) - json (2.10.1) - kramdown (2.5.1) - rexml (>= 3.3.9) + json (2.21.2) + kramdown (2.5.2) + rexml (>= 3.4.4) kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) liquid (4.0.4) - listen (3.9.0) + listen (3.10.0) + logger rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) + logger (1.7.0) mercenary (0.4.0) pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (6.0.1) - rake (13.2.1) + public_suffix (7.0.5) + rake (13.4.2) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.4.1) - rouge (4.5.1) + rexml (3.4.4) + rouge (4.7.0) safe_yaml (1.0.5) - sass-embedded (1.85.0-arm64-darwin) - google-protobuf (~> 4.29) + sass-embedded (1.105.0) + google-protobuf (~> 4.31) + rake (~> 13.3) + sass-embedded (1.105.0-aarch64-linux-android) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-aarch64-linux-gnu) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-aarch64-linux-musl) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-arm-linux-androideabi) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-arm-linux-gnueabihf) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-arm-linux-musleabihf) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-arm64-darwin) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-riscv64-linux-android) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-riscv64-linux-gnu) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-riscv64-linux-musl) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-x86_64-darwin) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-x86_64-linux-android) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-x86_64-linux-gnu) + google-protobuf (~> 4.31) + sass-embedded (1.105.0-x86_64-linux-musl) + google-protobuf (~> 4.31) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) unicode-display_width (2.6.0) - webrick (1.9.1) + webrick (1.9.2) PLATFORMS - arm64-darwin-24 + aarch64-linux-android + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-androideabi + arm-linux-gnu + arm-linux-gnueabihf + arm-linux-musl + arm-linux-musleabihf + arm64-darwin + arm64-darwin-23 + riscv64-linux-android + riscv64-linux-gnu + riscv64-linux-musl + ruby + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux + x86_64-linux-android + x86_64-linux-gnu + x86_64-linux-musl DEPENDENCIES base64 @@ -80,8 +165,77 @@ DEPENDENCIES jekyll webrick (~> 1.8) +CHECKSUMS + addressable (2.9.0) sha256=7fdf6ac3660f7f4e867a0838be3f6cf722ace541dd97767fa42bc6cfa980c7af + base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b + bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66 + colorator (1.1.0) sha256=e2f85daf57af47d740db2a32191d1bdfb0f6503a0dfbc8327d0c9154d5ddfc38 + concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1 + csv (3.3.6) sha256=aba61e7e507a66f03d45cb1f3c4b6359861c3504038b422962875dce099e4456 + em-websocket (0.5.3) sha256=f56a92bde4e6cb879256d58ee31f124181f68f8887bd14d53d5d9a292758c6a8 + eventmachine (1.2.7) sha256=994016e42aa041477ba9cff45cbe50de2047f25dd418eba003e84f0d16560972 + ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf + ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df + ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39 + ffi (1.17.4-arm-linux-gnu) sha256=d6dbddf7cb77bf955411af5f187a65b8cd378cb003c15c05697f5feee1cb1564 + ffi (1.17.4-arm-linux-musl) sha256=9d4838ded0465bef6e2426935f6bcc93134b6616785a84ffd2a3d82bc3cf6f95 + ffi (1.17.4-arm64-darwin) sha256=19071aaf1419251b0a46852abf960e77330a3b334d13a4ab51d58b31a937001b + ffi (1.17.4-x86-linux-gnu) sha256=38e150df5f4ca555e25beca4090823ae09657bceded154e3c52f8631c1ed72cf + ffi (1.17.4-x86-linux-musl) sha256=fbeec0fc7c795bcf86f623bb18d31ea1820f7bd580e1703a3d3740d527437809 + ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496 + ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d + ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e + forwardable-extended (2.6.0) sha256=1bec948c469bbddfadeb3bd90eb8c85f6e627a412a3e852acfd7eaedbac3ec97 + google-protobuf (4.36.2) sha256=2f8daff50ae14aad36ab0ccdcf284065fa71d726c444efe114e6db82ffe62494 + google-protobuf (4.36.2-aarch64-linux-gnu) sha256=c3279ec6eaa59f6ed6276eda2a33cffb4306471183ab79a332e698b8564f5169 + google-protobuf (4.36.2-aarch64-linux-musl) sha256=0772c9dde1e6dce9a6b44d1d35c28c29adee99d9bd6aff5e21840daeb22161ce + google-protobuf (4.36.2-arm64-darwin) sha256=f70d810e6bbab9d8ad9c1d5fd685a21de4c10ad3ad32efb9455e17e5b1286917 + google-protobuf (4.36.2-x86-linux-gnu) sha256=ffcd06d49bffca24afff18c900dd61a51ea3028d43c47d0d9621d00bf38a5866 + google-protobuf (4.36.2-x86-linux-musl) sha256=e1afec03babd73c9117cc09d5fc2a98dfef37a414bfd8a4d0ceaac7bd66fc028 + google-protobuf (4.36.2-x86_64-darwin) sha256=8d1bd2a344f7f589703b202ad2ee4cca8ef731b4ced45782ef92d385967384ba + google-protobuf (4.36.2-x86_64-linux-gnu) sha256=d25a820873e423f1d209ae8c672a4a28b019e2429debd0901d26670a0b4e14db + google-protobuf (4.36.2-x86_64-linux-musl) sha256=0fa17686c896da96a60a705e56ddc7d4ff56413f52787c655bd4c9fb33ffe14f + http_parser.rb (0.8.1) sha256=9ae8df145b39aa5398b2f90090d651c67bd8e2ebfe4507c966579f641e11097a + i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5 + jekyll (4.4.1) sha256=4c1144d857a5b2b80d45b8cf5138289579a9f8136aadfa6dd684b31fe2bc18c1 + jekyll-sass-converter (3.1.0) sha256=83925d84f1d134410c11d0c6643b0093e82e3a3cf127e90757a85294a3862443 + jekyll-watch (2.2.1) sha256=bc44ed43f5e0a552836245a54dbff3ea7421ecc2856707e8a1ee203a8387a7e1 + json (2.21.2) sha256=1f1d3b7cf2b3ba1a69beca0bb6db13d5438b80bff3cd54cdaaa620b9b07c1c6a + kramdown (2.5.2) sha256=1ba542204c66b6f9111ff00dcc26075b95b220b07f2905d8261740c82f7f02fa + kramdown-parser-gfm (1.1.0) sha256=fb39745516427d2988543bf01fc4cf0ab1149476382393e0e9c48592f6581729 + liquid (4.0.4) sha256=4fcfebb1a045e47918388dbb7a0925e7c3893e58d2bd6c3b3c73ec17a2d8fdb3 + listen (3.10.0) sha256=c6e182db62143aeccc2e1960033bebe7445309c7272061979bb098d03760c9d2 + logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203 + mercenary (0.4.0) sha256=b25a1e4a59adca88665e08e24acf0af30da5b5d859f7d8f38fba52c28f405138 + pathutil (0.16.2) sha256=e43b74365631cab4f6d5e4228f812927efc9cb2c71e62976edcb252ee948d589 + public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623 + rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701 + rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe + rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e + rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142 + rouge (4.7.0) sha256=dba5896715c0325c362e895460a6d350803dbf6427454f49a47500f3193ea739 + safe_yaml (1.0.5) sha256=a6ac2d64b7eb027bdeeca1851fe7e7af0d668e133e8a88066a0c6f7087d9f848 + sass-embedded (1.105.0) sha256=322f46df344e5d974fc808fa2a6fe973a02932c21545402a25ac5b7aee62ff5f + sass-embedded (1.105.0-aarch64-linux-android) sha256=1153c80152059a0c7b9c1a1f2fed7c527f2d06d6c7ffd2a5b2212283ef5cf3e5 + sass-embedded (1.105.0-aarch64-linux-gnu) sha256=26dc2b0f8063f99ad4df226ebecac361c52ce06c63d8acc20ebc615d1450ea09 + sass-embedded (1.105.0-aarch64-linux-musl) sha256=f74817c6d12cd63ce8b479844b2a791c68dca69500808925276f19bab875c072 + sass-embedded (1.105.0-arm-linux-androideabi) sha256=6ccb0ed5710098a6d3df68567d270c04d659a9c69233cc6455fbb7d0aa399d89 + sass-embedded (1.105.0-arm-linux-gnueabihf) sha256=32562783fcddcb83f1530b079c2920acffea40affc7bbbde4e0434fb5eb44b1b + sass-embedded (1.105.0-arm-linux-musleabihf) sha256=b1e766f2d95a8e08446640013fa00d8b006fe1679c7adabc54f3e9cd09aaa6a0 + sass-embedded (1.105.0-arm64-darwin) sha256=c9a7bdcf976b03c7a420df25de1ce39255cc8c9776117ea20bcf0fe7cbadee3f + sass-embedded (1.105.0-riscv64-linux-android) sha256=7b1f3ba3b2eab5ee45dc028f892685481f18c05e04eb2e0e107f28eee068c03e + sass-embedded (1.105.0-riscv64-linux-gnu) sha256=d0ac6793b8af67c43a7b9976d5c42869fd728b7300d212718b263437ff724e5d + sass-embedded (1.105.0-riscv64-linux-musl) sha256=1874212cd688b52726d4bad085794ba348c230187761807d18fa381eb3b13f14 + sass-embedded (1.105.0-x86_64-darwin) sha256=4e2d4238f8e286e0b256b63d3713ad27a06542b3079087e54d2c169072fb77fa + sass-embedded (1.105.0-x86_64-linux-android) sha256=893c960a3456645dc8d810266577eb5410e2665460617146ab63d4bdcda14de9 + sass-embedded (1.105.0-x86_64-linux-gnu) sha256=c7cb4884c6d1ddad41d52f5950167d5cf77e242d7900ca0ec13170ba43878977 + sass-embedded (1.105.0-x86_64-linux-musl) sha256=fbbda8c5df1073e177382cccd8c640ed7f49553e040713cd7fffca1af194cf96 + terminal-table (3.0.2) sha256=f951b6af5f3e00203fb290a669e0a85c5dd5b051b3b023392ccfd67ba5abae91 + unicode-display_width (2.6.0) sha256=12279874bba6d5e4d2728cef814b19197dbb10d7a7837a869bab65da943b7f5a + webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131 + RUBY VERSION - ruby 3.2.2p53 + ruby 4.0.7 BUNDLED WITH - 2.4.19 + 4.0.20 diff --git a/README.md b/README.md index 70137d7..524a8b3 100755 --- a/README.md +++ b/README.md @@ -2,28 +2,22 @@ [Live Site](https://landnav.app) -## Build Instructions +## Develop ```sh -brew install mise -mise install -mise run install -mise run dev -mise run deploy +mise install # Ruby, Node, cspell, markdownlint, html-proofer +mise run install # bundle install +mise run dev # http://localhost:4003 with livereload +mise run check # build, spell check, markdown lint, internal links ``` -Pushing to GitHub will publish the site on CloudFlare. - -Requires `RUBY_VERSION` environment variable to be set on production and preview deployments. - -Reference: <https://developers.cloudflare.com/pages/framework-guides/deploy-a-jekyll-site/> - -Important: Currently Cloudflare will fail if using Ruby 3.3.0 +Pushing to `main` publishes the site on Cloudflare Pages. `mise run verify` checks the live site afterwards. ## Powered By - Domain Register: [Namecheap](https://www.namecheap.com) -- DNS: [CloudFlare DNS](https://www.cloudflare.com/dns/) -- Hosting: [CloudFlare Pages](https://pages.cloudflare.com) +- DNS: [Cloudflare DNS](https://www.cloudflare.com/dns/) +- Hosting: [Cloudflare Pages](https://pages.cloudflare.com) - Build System: [Jekyll](https://jekyllrb.com) - CSS: [Pico.css](https://picocss.com) +- Map: [Leaflet](https://leafletjs.com) and [OpenStreetMap](https://www.openstreetmap.org) diff --git a/_config.yml b/_config.yml index 4d65b8a..25843cb 100755 --- a/_config.yml +++ b/_config.yml @@ -1,11 +1,13 @@ # Site settings title: Land Nav -description: A land navigation tool built for iOS. No ads. Privacy respected. +description: GPS and offline maps for iPhone and iPad. No ads. Privacy respected. url: https://landnav.app +icon: /icon.png start_year: 2023 author: name: Gerry Shaw email: gerry_shaw@yahoo.com + url: https://gshaw.ca # Build settings markdown: kramdown @@ -17,21 +19,18 @@ include: - .well-known exclude: + - AGENTS.md + - CLAUDE.md + - cspell.config.yaml - Gemfile - Gemfile.lock - LICENSE - README.md + - vendor defaults: - - - scope: + - scope: path: "" type: "pages" values: layout: "page" - - - scope: - path: "" - type: "posts" - values: - layout: "post" diff --git a/_includes/head.html b/_includes/head.html index 120c7ff..8038577 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,9 +1,17 @@ <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - {% if page.ogimage and page.ogimage != '' %} - <meta property="og:image" content="{{ page.ogimage }}" /> - {% endif %} + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>{{ page.title }} + {% assign description = page.description | default: site.description -%} + {% comment %}Cloudflare Pages serves /privacy.html at /privacy.{% endcomment -%} + {% assign canonical = page.url | remove: ".html" | absolute_url -%} + + + + + + + @@ -17,5 +25,4 @@ margin-bottom: 0.2em } - {{ page.title }} - \ No newline at end of file + diff --git a/_layouts/map.html b/_layouts/map.html index f956ee1..0eba67b 100755 --- a/_layouts/map.html +++ b/_layouts/map.html @@ -1,7 +1,10 @@ - + + + +{{ page.title }} - {{ site.title }} @@ -40,6 +43,7 @@ /* Adjust the size of the logo as needed */ } +
@@ -53,11 +57,11 @@

- GPS and offline maps for iOS. No ads. Privacy respected. + {{ site.description }}
- \ No newline at end of file + diff --git a/_layouts/page.html b/_layouts/page.html index 23e9ef1..51e6228 100755 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,5 @@ - + {% include head.html %} @@ -7,30 +7,29 @@

- Land Nav app icon + {{ site.title }} app icon {{ page.title }}

-

{{ page.subtitle }}

+ {% if page.subtitle %}

{{ page.subtitle }}

{% endif %} {{ content }}

- Land Nav + {{ site.title }} • - Whatʼs New + What’s New • Support • Privacy Policy • - © {{ site.start_year }} - {{ 'now' | date: "%Y" }} Gerry - Shaw + © {{ site.start_year }} - {{ 'now' | date: "%Y" }} {{ site.author.name }}

- \ No newline at end of file + diff --git a/cspell.config.yaml b/cspell.config.yaml new file mode 100644 index 0000000..d68d0fb --- /dev/null +++ b/cspell.config.yaml @@ -0,0 +1,20 @@ +$schema: "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json" +version: "0.2" +language: en +allowCompoundWords: true +ignorePaths: + - ".git" + - ".claude" + - "_site" + - ".jekyll-cache" + - "vendor" + - "Gemfile.lock" + - "assets/css/pico.min.css" + - "devlog.md" # historical record, kept as written +words: + - gshaw + - kramdown + - landnav + - ogimage # front matter key for the Open Graph image + - pico + - qrcode diff --git a/index.md b/index.md index 5b79a31..d0ec891 100644 --- a/index.md +++ b/index.md @@ -1,9 +1,11 @@ --- title: Land Nav -subtitle: GPS and offline maps for iOS. No ads. Privacy respected. +subtitle: GPS and offline maps for iPhone and iPad. No ads. Privacy respected. ogimage: /icon.png --- + +
Screenshot of Land Nav Screenshot of Land Nav @@ -20,15 +22,15 @@ ogimage: /icon.png - GPX import/export for waypoints, tracks, and routes - Customizable coordinate formats and units including UTM, MGRS and Mils - Document interface to organize map data -- Universal app works on iOS and iPad (macOS comming soon) +- Universal app works on iPhone and iPad - iCloud sync, plan on your iPad, navigate on your phone - No ads and no tracking -- Generous free trial, no subscription, single in-app purchase to buy +- Shareware: every feature works for free, no subscription, a single in-app purchase if you use it - Support independent app developer with a passion for the outdoors
-Download on the App Store +Download on the App Store QR Code Download Link diff --git a/privacy.md b/privacy.md index 965768a..f765a77 100644 --- a/privacy.md +++ b/privacy.md @@ -6,12 +6,12 @@ Last updated May 19, 2022 This Privacy Policy describes how your personal information is handled in Land Nav. -**Land Nav Collects No Personal Information** +## Land Nav Collects No Personal Information I do not collect, use, save, or have access to any of your personal data recorded in Land Nav. Data created stays on the device. -Mapbox does by default collect [de-identified telemetry data](https://www.mapbox.com/telemetry). You can disable this by tapping the Mapbox icon while use the map. +Mapbox does by default collect [de-identified telemetry data](https://www.mapbox.com/telemetry). You can disable this by tapping the Mapbox icon while using the map. Land Nav saves your data in [Apple's iCloud service](https://support.apple.com/en-us/HT202303) if this is enabled on your device. You can opt-out of this by disabling iCloud for Land Nav in Settings app for your device. -If you have any questions about this Privacy Policy, feel free to get in touch with me at gerry_shaw@yahoo.com +If you have any questions about this Privacy Policy, feel free to get in touch with me at [gerry_shaw@yahoo.com](mailto:gerry_shaw@yahoo.com). diff --git a/share/index.md b/share/index.md index 45a5e86..56141be 100644 --- a/share/index.md +++ b/share/index.md @@ -1,3 +1,4 @@ --- layout: map +title: Shared Location --- diff --git a/support.md b/support.md index 3ada4a6..479bb1c 100644 --- a/support.md +++ b/support.md @@ -4,10 +4,10 @@ title: Land Nav Support If you have any questions I'll try my best to quickly answer them by email at [gerry_shaw@yahoo.com](mailto:gerry_shaw@yahoo.com?subject=[Land Nav Support]) -### Frequently Asked Questions +## Frequently Asked Questions -1. **Is there an Android version?** Not at this time and unlikely in near future. +1. **Is there an Android version?** Not at this time and unlikely in the near future. -2. **Do I have to buy it?** If you are getting value from the app please buy it. Currently all the features are unlocked so buying only removes the nag badge on the map but that is going to change in the future and your early support will greatly help motivate further development. +2. **Do I have to buy it?** If you are getting value from the app please buy it. No. Land Nav works like old-school shareware: every feature is unlocked, and buying only removes the reminder badge on the map. If you use it, please buy it. It keeps the maps running and helps motivate further development. - I really don't want to go down the subscription route but there is an ongoing monthly cost to serve the maps. It's more important to me that people have access to a high quality map than it is for me to extract ever cent of profit from the app while at the same time I can't afford to do this for free. + I really don't want to go down the subscription route but there is an ongoing monthly cost to serve the maps. It's more important to me that people have access to a high quality map than it is for me to extract every cent of profit from the app while at the same time I can't afford to do this for free. diff --git a/whatsnew/1.0.1.md b/whatsnew/1.0.1.md index 0f7cdfc..b843821 100644 --- a/whatsnew/1.0.1.md +++ b/whatsnew/1.0.1.md @@ -1,5 +1,5 @@ --- -title: Whatʼs New in Land Nav 1.0.1 +title: What’s New in Land Nav 1.0.1 --- Version 1.0.1 was released on May 22, 2023. diff --git a/whatsnew/1.1.0.md b/whatsnew/1.1.0.md deleted file mode 100644 index 8d76e7d..0000000 --- a/whatsnew/1.1.0.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Whatʼs New in Land Nav 1.1.0 ---- - -- Search -- Map ruler -- Route and region drawing diff --git a/whatsnew/index.md b/whatsnew/index.md index 4a1799c..f0af31b 100644 --- a/whatsnew/index.md +++ b/whatsnew/index.md @@ -1,8 +1,7 @@ --- -title: Whatʼs New in Land Nav +title: What’s New in Land Nav --- -- [Whatʼs New in Land Nav 1.1.0](/whatsnew/1.1.0) (In Development) -- [Whatʼs New in Land Nav 1.0.1](/whatsnew/1.0.1) (May 22, 2023) +- [What’s New in Land Nav 1.0.1](/whatsnew/1.0.1) (May 22, 2023) For those wanting more information my [Developer Log](/devlog) describes the journey creating the 1.0 release of Land Nav over a period of 18 months.