Zensical Refactor (#300)

* refactor into zensical

* adjust nav layout

* more nav changes

* update features page

* open external hero links in new tab

* consolidate small pages

* add legacy page redirects

* tweak content

* further cleanup

* adjust netlify config

* disable redirect

* remove redirect script

* fix tag splitting for plugins

* Display plugin metadata on left-hand side

* revert icon changes

* move gallery to index page

* Add page deascriptions

* fix image size for carousel

* adjust theme
This commit is contained in:
Oliver authored and GitHub committed 2026-11-22 22:40:17 +11:00
1 parent 372cc20788
commit dd7d563e79
347 files changed
+3009 -17807

No files matched your search

+6 -5
View File
@@ -5,7 +5,7 @@ from urllib.request import urlopen, Request
inp_project = os.environ.get('PROJECT').strip()
inp_author = os.environ.get('AUTHOR').strip()
file_name = Path(f'_repo/{inp_project}.md')
file_name = Path(f'docs/plugins/{inp_project}.md')
crowdin_projet_id = 452300
print(f'Collecting {inp_project} with {inp_author}...')
@@ -39,7 +39,8 @@ except:
stable = False
bugtracker = pypi_data['info']['bugtrack_url'] or pypi_data['info']['project_urls'].get('Bug Tracker') or ''
homepage = pypi_data['info']['home_page'] or pypi_data['info']['project_urls'].get('Homepage')
keywords = pypi_data['info']['keywords']
keywords = pypi_data['info']['keywords'] or ''
tags = ''.join(f'\n - {k.strip()}' for k in keywords.replace(',', ' ').split() if k.strip())
readme = pypi_data['info']['description']
# Write data
@@ -49,17 +50,17 @@ name: {name}
author: {author}
license: {license}
open_source: true
stable: {stable}
stable: {str(stable).lower()}
maintained: true
pypi: true
package_name: {name}
github: {homepage}
gitlab:
source:
issue_tracker:{bugtracker}
issue_tracker: {bugtracker}
website:
categories:
tags: {keywords}
tags:{tags}
---
{tagline}
+6 -6
View File
@@ -4,7 +4,7 @@ import os
from pathlib import Path
from urllib.request import urlopen, Request
file_name = Path('_data/general/stats.yml')
file_name = Path('data/stats.yml')
github_project = "inventree/inventree"
crowdin_projet_id = 452300
@@ -49,18 +49,18 @@ file_name.write_text(
f"""stats:
- name: Docker pulls
number: {docker}
icon: fa-brands fa-docker
icon: ti-brand-docker
- name: GitHub Stars
number: {stars}
icon: fa-solid fa-star
icon: ti-star
- name: Forks
number: {forks}
icon: fa-solid fa-code-branch
icon: ti-git-fork
- name: Contributors
number: {contributors}
icon: fa-solid fa-hands-helping
icon: ti-users
- name: Languages
number: {languages}
icon: fa-solid fa fa-language
icon: ti-language
"""
)
+16 -14
View File
@@ -3,30 +3,32 @@ name: Build pages and publish
on:
push
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # required to push to the gh-pages branch
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
- uses: actions/checkout@v4
with:
ruby-version: 3.4.9
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v2
fetch-depth: 0 # full history - used for the "last modified" date of plugins
- uses: actions/setup-python@v5
with:
node-version: '14'
- run: npm install
python-version: '3.12'
cache: pip
- run: pip install -r requirements.txt
- name: Build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
- run: bundle exec htmlproofer ./_site --no-check-external-hash --no-enforce-https --ignore-urls "/localhost/,/www.linkedin.com/,digitalocean.com,/cloud.digitalocean.com/,/dnschecker.org/,/npmjs.com/,/reddit.com/r/inventree/,/twitter.com/inventreedb/,/github.com/,/developer.digikey.com/,/patreon.com/,/partkeepr.org/,/download.dymo.com/,brother.com.au,/marketplace.digitalocean.com,/chaos.social"
name: Check links
# strict mode (set in mkdocs.yml) fails the build on broken internal links
run: zensical build --clean
- name: Generate plugins.json and legacy feeds
run: python scripts/post_build.py
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main'}}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: 'gh-pages'
publish_dir: ./_site
publish_dir: ./site