diff --git a/.github/CONTRIBUTING.markdown b/.github/CONTRIBUTING.md similarity index 100% rename from .github/CONTRIBUTING.markdown rename to .github/CONTRIBUTING.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d1c8a9987..75eda1c6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -525,7 +525,7 @@ when updating. Also see: https://www.arp242.net/goatcounter-1.2.html GoatCounter now tracks unique visits (without using cookies). Technical documentation about the implementation is in - [doc/sessions.markdown](doc/sessions.markdown). + [doc/sessions.md](doc/sessions.md). There are two ways to display the older stats: diff --git a/LICENSE b/LICENSE index 74c63a2e5..fc8de31af 100644 --- a/LICENSE +++ b/LICENSE @@ -12,8 +12,8 @@ Motivation for choosing the EUPL: https://www.arp242.net/license.html The count.js integration script is licensed under the permissive ISC license to ease integrating it. GoatCounter also contains various 3rd-party components, most of which are MIT or BSD licensed (the licenses for which are included in -this file as well). See docs/sbom.markdown for a list of all dependencies and -their licenses. +this file as well). See docs/sbom.md for a list of all dependencies and their +licenses. ––– public/count.js; ISC license –––––––––––––––––––––––––––––––––––––––––––––– diff --git a/README.md b/README.md index 000e97227..bdc0230f4 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ There are two ways to run this: as hosted service on [goatcounter.com][www], or run it on your own server. The source code is completely Open Source/Free Software, and it can be self-hosted without restrictions. -See [docs/rationale.markdown](docs/rationale.markdown) for some more details on -the *"why?"* of this project. +See [docs/rationale.md](docs/rationale.md) for some more details on the *"why?"* +of this project. There's a live demo at [https://stats.arp242.net](https://stats.arp242.net). @@ -57,7 +57,7 @@ Features [privacy]: https://www.goatcounter.com/privacy [gdpr]: https://www.goatcounter.com/gdpr -[sessions]: https://github.com/arp242/goatcounter/blob/master/docs/sessions.markdown +[sessions]: https://github.com/arp242/goatcounter/blob/master/docs/sessions.md Getting data in to GoatCounter @@ -195,7 +195,7 @@ This will ask for a password for your new account; you can also add a password on the commandline with `-password`. You must also pass the `-db` flag here if you use something other than the default. -[bench]: https://github.com/arp242/goatcounter/blob/master/docs/benchmark.markdown +[bench]: https://github.com/arp242/goatcounter/blob/master/docs/benchmark.md ### Updating You may need to run the database migrations when updating. Use `goatcounter @@ -244,5 +244,5 @@ TLS is disabled by default, it will listen on localhost:8081, the application will automatically restart on recompiles, templates and static files will be read directly from the filesystem, and a few other minor changes. -See [.github/CONTRIBUTING.markdown](/.github/CONTRIBUTING.markdown) for more -details on how to run a development server, write patches, etc. +See [.github/CONTRIBUTING.md](/.github/CONTRIBUTING.md) for more details on how +to run a development server, write patches, etc. diff --git a/cmd/goatcounter/db.go b/cmd/goatcounter/db.go index 28f6ee049..88f1fe30c 100644 --- a/cmd/goatcounter/db.go +++ b/cmd/goatcounter/db.go @@ -247,7 +247,7 @@ Detailed documentation on the -db flag: SQLite should work fine for most smaller site like blogs and such, but for more serious usage PostgreSQL is recommended. Some basic benchmarks comparing the two can be found here: - https://github.com/arp242/goatcounter/blob/master/docs/benchmark.markdown + https://github.com/arp242/goatcounter/blob/master/docs/benchmark.md The database is automatically created for the "serve" command, but you need to add -createdb to any other commands to create the database. This is to diff --git a/deploy/alpine/README.markdown b/deploy/alpine/README.md similarity index 100% rename from deploy/alpine/README.markdown rename to deploy/alpine/README.md diff --git a/docs/benchmark.markdown b/docs/benchmark.md similarity index 99% rename from docs/benchmark.markdown rename to docs/benchmark.md index 65ad4d163..eebf58542 100644 --- a/docs/benchmark.markdown +++ b/docs/benchmark.md @@ -122,7 +122,7 @@ I used [hey][hey] to run the actual benchmarks with a simple script: #!/bin/sh # - # https://github.com/arp242/goatcounter/blob/master/docs/benchmark.markdown + # https://github.com/arp242/goatcounter/blob/master/docs/benchmark.md # Requires "hey": https://github.com/rakyll/hey url=https://gcbench.arp242.net diff --git a/docs/plans.markdown b/docs/plans.md similarity index 100% rename from docs/plans.markdown rename to docs/plans.md diff --git a/docs/rationale.markdown b/docs/rationale.md similarity index 100% rename from docs/rationale.markdown rename to docs/rationale.md diff --git a/docs/ross-security-evaluation-20200828.markdown b/docs/ross-security-evaluation-20200828.md similarity index 100% rename from docs/ross-security-evaluation-20200828.markdown rename to docs/ross-security-evaluation-20200828.md diff --git a/docs/sbom.markdown b/docs/sbom.md similarity index 100% rename from docs/sbom.markdown rename to docs/sbom.md diff --git a/docs/sessions.markdown b/docs/sessions.md similarity index 100% rename from docs/sessions.markdown rename to docs/sessions.md diff --git a/handlers/website.go b/handlers/website.go index 095a97d46..9e9e0ce3e 100644 --- a/handlers/website.go +++ b/handlers/website.go @@ -503,7 +503,7 @@ func (h website) help(w http.ResponseWriter, r *http.Request) error { return err } - _, err = fs.Stat(fsys, cp+".markdown") + _, err = fs.Stat(fsys, cp+".md") if err != nil { if !errors.Is(err, os.ErrNotExist) { return err diff --git a/public/count.js b/public/count.js index 023b6c194..8d46d3082 100644 --- a/public/count.js +++ b/public/count.js @@ -1,6 +1,5 @@ // GoatCounter: https://www.goatcounter.com -// This file (and *only* this file) is released under the ISC license: -// https://opensource.org/licenses/ISC +// This file is released under the ISC license: https://opensource.org/licenses/ISC ;(function() { 'use strict'; diff --git a/tpl.go b/tpl.go index 6ee225f01..982027156 100644 --- a/tpl.go +++ b/tpl.go @@ -144,7 +144,7 @@ func init() { if err != nil { panic(err) } - f, err := fs.ReadFile(fsys, file+".markdown") + f, err := fs.ReadFile(fsys, file+".md") if err != nil { panic(err) } diff --git a/tpl/design.gohtml b/tpl/design.gohtml index 996d0d075..53859ffec 100644 --- a/tpl/design.gohtml +++ b/tpl/design.gohtml @@ -1,5 +1,5 @@ {{/************************************************************************* - * This file was generated from tpl/design.markdown. DO NOT EDIT. + * This file was generated from tpl/design.md. DO NOT EDIT. *************************************************************************/}} {{template "_top.gohtml" .}} diff --git a/tpl/design.markdown b/tpl/design.md similarity index 100% rename from tpl/design.markdown rename to tpl/design.md diff --git a/tpl/help/404.markdown b/tpl/help/404.md similarity index 100% rename from tpl/help/404.markdown rename to tpl/help/404.md diff --git a/tpl/help/api.markdown b/tpl/help/api.md similarity index 100% rename from tpl/help/api.markdown rename to tpl/help/api.md diff --git a/tpl/help/backend.markdown b/tpl/help/backend.md similarity index 100% rename from tpl/help/backend.markdown rename to tpl/help/backend.md diff --git a/tpl/help/beacon.markdown b/tpl/help/beacon.md similarity index 100% rename from tpl/help/beacon.markdown rename to tpl/help/beacon.md diff --git a/tpl/help/campaigns.markdown b/tpl/help/campaigns.md similarity index 100% rename from tpl/help/campaigns.markdown rename to tpl/help/campaigns.md diff --git a/tpl/help/consent.markdown b/tpl/help/consent.md similarity index 100% rename from tpl/help/consent.markdown rename to tpl/help/consent.md diff --git a/tpl/help/countjs-host.markdown b/tpl/help/countjs-host.md similarity index 100% rename from tpl/help/countjs-host.markdown rename to tpl/help/countjs-host.md diff --git a/tpl/help/countjs-location.markdown b/tpl/help/countjs-location.md similarity index 100% rename from tpl/help/countjs-location.markdown rename to tpl/help/countjs-location.md diff --git a/tpl/help/countjs-versions.markdown b/tpl/help/countjs-versions.md similarity index 100% rename from tpl/help/countjs-versions.markdown rename to tpl/help/countjs-versions.md diff --git a/tpl/help/csp.markdown b/tpl/help/csp.md similarity index 100% rename from tpl/help/csp.markdown rename to tpl/help/csp.md diff --git a/tpl/help/domains.markdown b/tpl/help/domains.md similarity index 100% rename from tpl/help/domains.markdown rename to tpl/help/domains.md diff --git a/tpl/help/events.markdown b/tpl/help/events.md similarity index 100% rename from tpl/help/events.markdown rename to tpl/help/events.md diff --git a/tpl/help/export.markdown b/tpl/help/export.md similarity index 100% rename from tpl/help/export.markdown rename to tpl/help/export.md diff --git a/tpl/help/faq.markdown b/tpl/help/faq.md similarity index 100% rename from tpl/help/faq.markdown rename to tpl/help/faq.md diff --git a/tpl/help/frame.markdown b/tpl/help/frame.md similarity index 100% rename from tpl/help/frame.markdown rename to tpl/help/frame.md diff --git a/tpl/help/gdpr.markdown b/tpl/help/gdpr.md similarity index 100% rename from tpl/help/gdpr.markdown rename to tpl/help/gdpr.md diff --git a/tpl/help/js.markdown b/tpl/help/js.md similarity index 100% rename from tpl/help/js.markdown rename to tpl/help/js.md diff --git a/tpl/help/logfile.markdown b/tpl/help/logfile.md similarity index 100% rename from tpl/help/logfile.markdown rename to tpl/help/logfile.md diff --git a/tpl/help/modify.markdown b/tpl/help/modify.md similarity index 100% rename from tpl/help/modify.markdown rename to tpl/help/modify.md diff --git a/tpl/help/path.markdown b/tpl/help/path.md similarity index 100% rename from tpl/help/path.markdown rename to tpl/help/path.md diff --git a/tpl/help/pixel.markdown b/tpl/help/pixel.md similarity index 100% rename from tpl/help/pixel.markdown rename to tpl/help/pixel.md diff --git a/tpl/help/privacy.markdown b/tpl/help/privacy.md similarity index 100% rename from tpl/help/privacy.markdown rename to tpl/help/privacy.md diff --git a/tpl/help/skip-dev.markdown b/tpl/help/skip-dev.md similarity index 100% rename from tpl/help/skip-dev.markdown rename to tpl/help/skip-dev.md diff --git a/tpl/help/spa.markdown b/tpl/help/spa.md similarity index 100% rename from tpl/help/spa.markdown rename to tpl/help/spa.md diff --git a/tpl/help/start.markdown b/tpl/help/start.md similarity index 100% rename from tpl/help/start.markdown rename to tpl/help/start.md diff --git a/tpl/help/terms.markdown b/tpl/help/terms.md similarity index 100% rename from tpl/help/terms.markdown rename to tpl/help/terms.md diff --git a/tpl/help/translating.markdown b/tpl/help/translating.md similarity index 100% rename from tpl/help/translating.markdown rename to tpl/help/translating.md diff --git a/tpl/help/visitor-counter.markdown b/tpl/help/visitor-counter.md similarity index 100% rename from tpl/help/visitor-counter.markdown rename to tpl/help/visitor-counter.md diff --git a/tpl/home.gohtml b/tpl/home.gohtml index 279d69586..c85df1d67 100644 --- a/tpl/home.gohtml +++ b/tpl/home.gohtml @@ -56,7 +56,7 @@

Identify unique visits without cookies or persistently storing any personal data - (technical details). + (technical details).

Keeps useful statistics such as browser information, diff --git a/tpl/why.gohtml b/tpl/why.gohtml index a85e9c953..ebc9f35e7 100644 --- a/tpl/why.gohtml +++ b/tpl/why.gohtml @@ -1,5 +1,5 @@ {{/************************************************************************* - * This file was generated from tpl/why.markdown. DO NOT EDIT. + * This file was generated from tpl/why.md. DO NOT EDIT. *************************************************************************/}} {{template "_top.gohtml" .}} diff --git a/tpl/why.markdown b/tpl/why.md similarity index 100% rename from tpl/why.markdown rename to tpl/why.md