[SCM] postgis.net branch back-to-toml created. clarity-final-96-gebed666
git at osgeo.org
git at osgeo.org
Fri May 31 07:44:01 PDT 2024
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "postgis.net".
The branch, back-to-toml has been created
at ebed666be9d5597731f20b90636f25fa1af791ab (commit)
- Log -----------------------------------------------------------------
commit ebed666be9d5597731f20b90636f25fa1af791ab
Author: Sandro Santilli <strk at kbt.io>
Date: Fri May 31 16:40:45 2024 +0200
Move configuration back to toml
Update check_releases_md5 to work with toml
diff --git a/config.json b/config.json
deleted file mode 100644
index b780f1a..0000000
--- a/config.json
+++ /dev/null
@@ -1,128 +0,0 @@
-{
- "baseURL": "https://postgis.net/",
- "title": "PostGIS",
- "theme": "hugo-geekdoc",
- "pygmentsUseClasses": true,
- "pygmentsCodeFences": true,
- "disablePathToLower": true,
- "enableRobotsTXT": true,
- "permalinks": {
- "news": "/:year/:month/:title/"
- },
- "markup": {
- "goldmark": {
- "renderer": {
- "unsafe": true
- }
- },
- "tableOfContents": {
- "startLevel": 1,
- "endLevel": 9
- }
- },
- "taxonomies": {
- "tag": "tags",
- "event": "events"
- },
- "services": {
- "rss": {
- "limit": 10
- }
- },
- "outputFormats": {
- "RSS": {
- "mediatype": "application/rss",
- "baseName": "feed"
- }
- },
- "params": {
- "geekdocToC": 2,
- "geekdocMenuBundle": false,
- "geekdocCollapseAllSections": false,
- "geekdocNextPrev": true,
- "geekdocBreadcrumb": true,
- "geekdocSearch": true,
- "geekdocSearchShowParent": true,
- "geekdocAnchor": true,
- "geekdocAnchorCopy": true,
- "geekdocImageLazyLoading": true,
- "geekdocOverwriteHTMLBase": false,
- "geekdocDarkModeToggle": true,
- "geekdocDarkModeDim": false,
- "geekdocDarkModeCode": false,
- "geekdocBackToTop": true,
- "geekdocTagsToMenu": false,
- "docLanguages": [
- "en",
- "ja",
- "fr",
- "zh_Hans",
- "de",
- "ko_KR",
- "es",
- "it",
- "br"
- ],
- "geekdocFileTreeSortBy": "title",
- "geekdocContentLicense": {
- "name": "CC BY-SA 4.0",
- "link": "https://creativecommons.org/licenses/by-sa/4.0/"
- },
- "postgisMenu": [
- {
- "name": "Documentation",
- "href": "/documentation"
- },
- {
- "name": "Community",
- "href": "/community"
- },
- {
- "name": "Development",
- "href": "/support"
- }
- ],
- "postgis": {
- "version": "3.3.4",
- "release_docs": "https://download.osgeo.org/postgis/docs",
- "release_source": "https://download.osgeo.org/postgis/source",
- "release_notes": "https://git.osgeo.org/gitea/postgis/postgis/raw/tag",
- "source_dev_branch": "https://git.osgeo.org/gitea/postgis/postgis/src/branch/master",
- "site_docs": "/docs",
- "dev_download": "/stuff",
- "releases": {
- "dev": {
- "minor": "3.5",
- "dev": "3.5.0dev",
- "tag": "3.5.0dev",
- "is_dev": true
- },
- "34": {
- "minor": "3.4",
- "dev": "3.4.3dev",
- "tag": "3.4.2"
- },
- "33": {
- "minor": "3.3",
- "dev": "3.3.7dev",
- "tag": "3.3.6"
- },
- "32": {
- "minor": "3.2",
- "dev": "3.2.8dev",
- "tag": "3.2.7"
- },
- "31": {
- "minor": "3.1",
- "dev": "3.1.12dev",
- "tag": "3.1.11"
- },
- "30": {
- "minor": "3.0",
- "dev": "3.0.12dev",
- "tag": "3.0.11"
- }
- }
- }
- }
-}
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..13caa9a
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,205 @@
+
+baseURL = "https://postgis.net/"
+title = "PostGIS"
+theme = "hugo-geekdoc"
+
+# Required to get well formatted code blocks
+pygmentsUseClasses = true
+pygmentsCodeFences = true
+disablePathToLower = true
+# enableGitInfo = true
+
+# Required if you want to render robots.txt template
+enableRobotsTXT = true
+
+
+
+[permalinks]
+ news = '/:year/:month/:title/'
+
+[markup]
+ [markup.goldmark.renderer]
+ # Needed for mermaid shortcode
+ unsafe = true
+ [markup.tableOfContents]
+ startLevel = 1
+ endLevel = 9
+
+[taxonomies]
+ tag = "tags"
+ event = "events"
+
+[services.rss]
+ limit = 10
+
+[outputFormats]
+[outputFormats.RSS]
+ mediatype = "application/rss"
+ baseName = "feed"
+
+[params]
+
+ # (Optional, default 6) Set how many table of contents levels to be showed on page.
+ # Use false to hide ToC, note that 0 will default to 6 (https://gohugo.io/functions/default/)
+ # You can also specify this parameter per page in front matter.
+ geekdocToC = 2
+
+ # (Optional, default static/brand.svg) Set the path to a logo for the Geekdoc
+ # relative to your 'static/' folder.
+ # We ignore this value in the CSS
+ #geekdocLogo = "postgis-logo-horizontal.png"
+
+ # (Optional, default false) Render menu from data file in 'data/menu/main.yaml'.
+ # See also https://geekdocs.de/usage/menus/#bundle-menu.
+ geekdocMenuBundle = false
+
+ # (Optional, default false) Collapse all menu entries, can not be overwritten
+ # per page if enabled. Can be enabled per page via 'geekdocCollapseSection'.
+ geekdocCollapseAllSections = false
+
+ # (Optional, default true) Show page navigation links at the bottom of each
+ # docs page (bundle menu only).
+ geekdocNextPrev = true
+
+ # (Optional, default true) Show a breadcrumb navigation bar at the top of each docs page.
+ # You can also specify this parameter per page in front matter.
+ geekdocBreadcrumb = true
+
+ # (Optional, default none) Set source repository location. Used for 'Edit page' links.
+ # You can also specify this parameter per page in front matter.
+ #geekdocRepo = "https://git.osgeo.org/gitea/postgis/postgis.net"
+
+ # (Optional, default none) Enable 'Edit page' links. Requires 'GeekdocRepo' param
+ # and the path must point to the parent directory of the 'content' folder.
+ # You can also specify this parameter per page in front matter.
+ #geekdocEditPath = "/src/branch/website/content"
+
+ # (Optional, default true) Enables search function with flexsearch.
+ # Index is built on the fly and might slow down your website.
+ geekdocSearch = true
+
+ # (Optional, default false) Display search results with the parent folder as prefix. This
+ # option allows you to distinguish between files with the same name in different folders.
+ # NOTE: This parameter only applies when 'geekdocSearch = true'.
+ geekdocSearchShowParent = true
+
+ # (Optional, default none) Add a link to your Legal Notice page to the site footer.
+ # It can be either a remote url or a local file path relative to your content directory.
+ #geekdocLegalNotice = "https://blog.example.com/legal"
+
+ # (Optional, default none) Add a link to your Privacy Policy page to the site footer.
+ # It can be either a remote url or a local file path relative to your content directory.
+ #geekdocPrivacyPolicy = "/privacy"
+
+ # (Optional, default true) Add an anchor link to headlines.
+ geekdocAnchor = true
+
+ # (Optional, default true) Copy anchor url to clipboard on click.
+ geekdocAnchorCopy = true
+
+ # (Optional, default true) Enable or disable image lazy loading for images rendered
+ # by the 'img' shortcode.
+ geekdocImageLazyLoading = true
+
+ # (Optional, default false) Set HTMl <base> to .Site.BaseURL if enabled. It might be required
+ # if a subdirectory is used within Hugos BaseURL.
+ # See https://developer.mozilla.org/de/docs/Web/HTML/Element/base.
+ geekdocOverwriteHTMLBase = false
+
+ # (Optional, default true) Enable or disable the JavaScript based color theme toggle switch. The CSS based
+ # user preference mode still works.
+ geekdocDarkModeToggle = true
+
+ # (Optional, default false) Auto-decrease brightness of images and add a slightly grayscale to avoid
+ # bright spots while using the dark mode.
+ geekdocDarkModeDim = false
+
+ # (Optional, default false) Enforce code blocks to always use the dark color theme.
+ geekdocDarkModeCode = false
+
+ # (Optional, default true) Display a "Back to top" link in the site footer.
+ geekdocBackToTop = true
+
+ # (Optional, default false) Enable or disable adding tags for post pages automatically to the navigation sidebar.
+ geekdocTagsToMenu = false
+
+ docLanguages = ['en', 'ja', 'fr', 'zh_Hans', 'de', 'ko_KR', 'es', 'it', 'br']
+
+ # (Optional, default 'title') Configure how to sort file-tree menu entries. Possible options are 'title', 'linktitle',
+ # 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
+ # e.g. 'title_reverse'.
+ geekdocFileTreeSortBy = "title"
+
+ # (Optional, default none) Adds a "Content licensed under <license>" line to the footer.
+ # Could be used if you want to define a default license for your content.
+ [params.geekdocContentLicense]
+ name = "CC BY-SA 4.0"
+ link = "https://creativecommons.org/licenses/by-sa/4.0/"
+
+ [[params.postgisMenu]]
+ name = "Documentation"
+ href = "/documentation"
+
+ [[params.postgisMenu]]
+ name = "Community"
+ href = "/community"
+
+ [[params.postgisMenu]]
+ name = "Development"
+ href = "/support"
+
+ # [[params.postgisMenu]]
+ # name = "Home"
+ # href = "/"
+
+
+ [params.postgis]
+ version = "3.3.4"
+ release_docs = "https://download.osgeo.org/postgis/docs"
+ release_source = "https://download.osgeo.org/postgis/source"
+ release_notes = "https://git.osgeo.org/gitea/postgis/postgis/raw/tag"
+ source_dev_branch = "https://git.osgeo.org/gitea/postgis/postgis/src/branch/master"
+ site_docs = "/docs"
+ dev_download = "/stuff"
+
+ [params.postgis.releases]
+ [params.postgis.releases.dev]
+ minor = "3.5"
+ dev = "3.5.0dev"
+ tag = "3.5.0dev"
+ is_dev = true
+ [params.postgis.releases.34]
+ minor = "3.4"
+ dev = "3.4.3dev"
+ tag = "3.4.2"
+ [params.postgis.releases.33]
+ minor = "3.3"
+ dev = "3.3.7dev"
+ tag = "3.3.6"
+ [params.postgis.releases.32]
+ minor = "3.2"
+ dev = "3.2.8dev"
+ tag = "3.2.7"
+ [params.postgis.releases.31]
+ minor = "3.1"
+ dev = "3.1.12dev"
+ tag = "3.1.11"
+ [params.postgis.releases.30]
+ minor = "3.0"
+ dev = "3.0.12dev"
+ tag = "3.0.11"
+ # [params.postgis.releases.25]
+ # minor = "2.5"
+ # dev = "2.5.11"
+ # tag = "2.5.11"
+ # eol = true
+ # [params.postgis.releases.24]
+ # minor = "2.4"
+ # dev = "2.4.10"
+ # tag = "2.4.10"
+ # eol = true
+ # [params.postgis.releases.23]
+ # minor = "2.3"
+ # dev = "2.3.11"
+ # tag = "2.3.11"
+ # eol = true
diff --git a/utils/check_releases_md5.sh b/utils/check_releases_md5.sh
index 339e191..90c67b8 100755
--- a/utils/check_releases_md5.sh
+++ b/utils/check_releases_md5.sh
@@ -4,13 +4,13 @@ WORKDIR=$PWD/releases-check
API=https://git.osgeo.org/gitea/api/v1
DOWNLOAD_BASE=https://download.osgeo.org/postgis/source
MD5_BASE=https://postgis.net/stuff
-CONFIG=$(cd $(dirname $0)/../; pwd)/config.json
+CONFIG=$(cd $(dirname $0)/../; pwd)/config.toml
mkdir -p ${WORKDIR}
cd ${WORKDIR}
echo "Fetching list of published releases"
-jq -r '.params.postgis.releases[] | select( .is_dev != true ) | .tag' \
+tomlq -r '.params.postgis.releases[] | select( .is_dev != true ) | .tag' \
${CONFIG} > checked_releases.txt
while read REL; do
-----------------------------------------------------------------------
hooks/post-receive
--
postgis.net
More information about the postgis-tickets
mailing list