diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e47a111..4e2cae5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,7 +17,6 @@ updates: versioning-strategy: "auto" labels: - "dependencies" - - "ruby" commit-message: prefix: "bundle" include: "scope" diff --git a/.github/workflows/accessibility-tests.yml b/.github/workflows/accessibility-tests.yml deleted file mode 100644 index 7dcce71..0000000 --- a/.github/workflows/accessibility-tests.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Accessibility Tests - -on: - pull_request: - branches: - - gh-pages - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - pip install -r requirements.txt - pip install axe-core-python pytest playwright axe-playwright-python - - - name: Install Playwright browsers - run: | - playwright install - - - name: Run accessibility tests - run: | - python3 -m pytest tests/ diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml deleted file mode 100644 index cd36c9d..0000000 --- a/.github/workflows/contributors.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Monthly contributor report -on: - schedule: - - cron: "3 2 1 * *" - workflow_dispatch: -# push: -# branches: ["gh-pages"] - -permissions: - issues: write - contents: write - pull-requests: write - -jobs: - contributor_report_readme: - name: contributor report - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Get dates for last month - shell: bash - run: | - # Calculate the first day of the previous month - start_date=$(date -d "last month" +%Y-%m-01) - - # Calculate the last day of the previous month - end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d) - - #Set an environment variable with the date range - echo "START_DATE=$start_date" >> "$GITHUB_ENV" - echo "END_DATE=$end_date" >> "$GITHUB_ENV" - - - name: Run contributor action - uses: github/contributors@v1 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - START_DATE: ${{ env.START_DATE }} - END_DATE: ${{ env.END_DATE }} - ORGANIZATION: BlackPythonDevs - SPONSOR_INFO: "true" - - - name: Create issue - id: ciff - uses: peter-evans/create-issue-from-file@v5 - with: - title: Monthly contributor report - token: ${{ secrets.GITHUB_TOKEN }} - content-filepath: ./contributors.md - labels: | - report - automated issue - # assignees: - - - name: Close Issue - run: gh issue close --comment "Auto-closing issue" ${{ steps.ciff.outputs.issue-number }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Contribute List - uses: akhilmhdh/contributors-readme-action@v2.3.6 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/generate_screenshots.yml b/.github/workflows/generate_screenshots.yml deleted file mode 100644 index e4e25a8..0000000 --- a/.github/workflows/generate_screenshots.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Generate and Upload Screenshots -# https://devblogs.microsoft.com/python/announcing-playwright-for-python-reliable-end-to-end-testing-for-the-web/ -# https://github.com/marketplace/actions/run-playwright-tests - -on: - pull_request: - types: [labeled] - branches: - - gh-pages - - workflow_dispatch: - -jobs: - test: - if: ${{ github.event.label.name == 'design_change' }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.12" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt - python -m playwright install --with-deps chromium - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - # Run tests - - name: Run Tests - run: | - python -m pytest -m design - - name: upload images - uses: actions/upload-artifact@v4 - with: - name: page_screenshots - path: test_images/ - compression-level: 9 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 3006d25..533d266 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -27,11 +27,6 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt python -m playwright install --with-deps chromium - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - # Run tests - name: Run Tests run: | python -m pytest diff --git a/.github/workflows/teahouse.yml b/.github/workflows/teahouse.yml new file mode 100644 index 0000000..3ebfd2f --- /dev/null +++ b/.github/workflows/teahouse.yml @@ -0,0 +1,58 @@ +name: Publish + +on: + push: + workflow_dispatch: + repository_dispatch: + +permissions: + id-token: write # This is required for requesting the JWT + contents: read # This is required for actions/checkout + +concurrency: + group: "teahouse" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.13" + cache: "pip" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + python -m playwright install --with-deps chromium + - name: Build + run: | + render-engine serve + - uses: actions/upload-artifact@v4 + with: + name: website + path: ./output + + # Deployment job + deploy: + if: github.repository == 'teahouse-hosting/docs.teahouse.cafe' && github.ref == 'refs/heads/trunk' + environment: + name: teahouse + url: https://docs.teahouse.cafe + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v4 + with: + name: website + path: ./output + - name: Upload + uses: teahouse-hosting/upload@trunk + with: + domain: docs.teahouse.cafe + root: ./build/html diff --git a/.gitignore b/.gitignore index d69e7ce..18936e8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,214 @@ test_images *-version .DS_Store .coverage +output +output +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[codz] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py.cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# UV +# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +#uv.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock +#poetry.toml + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python. +# https://pdm-project.org/en/latest/usage/project/#working-with-version-control +#pdm.lock +#pdm.toml +.pdm-python +.pdm-build/ + +# pixi +# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control. +#pixi.lock +# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one +# in the .venv directory. It is recommended not to include this directory in version control. +.pixi + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.envrc +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +# Abstra +# Abstra is an AI-powered process automation framework. +# Ignore directories containing user credentials, local state, and settings. +# Learn more at https://abstra.io/docs +.abstra/ + +# Visual Studio Code +# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore +# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore +# and can be added to the global gitignore or merged into this file. However, if you prefer, +# you could uncomment the following to ignore the entire vscode folder +# .vscode/ + +# Ruff stuff: +.ruff_cache/ + +# PyPI configuration file +.pypirc + +# Cursor +# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to +# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data +# refer to https://docs.cursor.com/context/ignore-files +.cursorignore +.cursorindexingignore + +# Marimo +marimo/_static/ +marimo/_lsp/ +__marimo__/ +.venv +output diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index fa7adc7..0000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -3.3.5 diff --git a/Gemfile b/Gemfile deleted file mode 100644 index 3237b38..0000000 --- a/Gemfile +++ /dev/null @@ -1,22 +0,0 @@ -source "https://rubygems.org" -ruby RUBY_VERSION - -gem "jekyll" - -# If you have any plugins, put them here! -group :jekyll_plugins do - gem "jemoji" - gem "github-pages" - gem "jekyll-remote-theme" - gem "jekyll-feed" - gem "jekyll-paginate" -end - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] - -gem 'webrick', '~> 1.9' - -# gem "rake" -# gem 'prism', '~> 0.17.1' -# gem 'ruby-lsp', '~> 0.12.4' diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index bc7a92d..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,331 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - activesupport (8.0.2) - base64 - benchmark (>= 0.3) - bigdecimal - concurrent-ruby (~> 1.0, >= 1.3.1) - connection_pool (>= 2.2.5) - drb - i18n (>= 1.6, < 2) - logger (>= 1.4.2) - minitest (>= 5.1) - securerandom (>= 0.3) - tzinfo (~> 2.0, >= 2.0.5) - uri (>= 0.13.1) - addressable (2.8.7) - public_suffix (>= 2.0.2, < 7.0) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - colorator (1.1.0) - commonmarker (0.23.11) - concurrent-ruby (1.3.5) - connection_pool (2.5.3) - csv (3.3.4) - dnsruby (1.72.4) - base64 (~> 0.2.0) - logger (~> 1.6.5) - simpleidn (~> 0.2.1) - drb (2.2.1) - em-websocket (0.5.3) - eventmachine (>= 0.12.9) - http_parser.rb (~> 0) - ethon (0.16.0) - ffi (>= 1.15.0) - eventmachine (1.2.7) - execjs (2.10.0) - faraday (2.13.1) - faraday-net_http (>= 2.0, < 3.5) - json - logger - faraday-net_http (3.4.0) - net-http (>= 0.5.0) - ffi (1.17.2-aarch64-linux-gnu) - ffi (1.17.2-aarch64-linux-musl) - ffi (1.17.2-arm-linux-gnu) - ffi (1.17.2-arm-linux-musl) - ffi (1.17.2-arm64-darwin) - ffi (1.17.2-x86-linux-gnu) - ffi (1.17.2-x86-linux-musl) - ffi (1.17.2-x86_64-darwin) - ffi (1.17.2-x86_64-linux-gnu) - ffi (1.17.2-x86_64-linux-musl) - forwardable-extended (2.6.0) - gemoji (4.1.0) - github-pages (232) - github-pages-health-check (= 1.18.2) - jekyll (= 3.10.0) - jekyll-avatar (= 0.8.0) - jekyll-coffeescript (= 1.2.2) - jekyll-commonmark-ghpages (= 0.5.1) - jekyll-default-layout (= 0.1.5) - jekyll-feed (= 0.17.0) - jekyll-gist (= 1.5.0) - jekyll-github-metadata (= 2.16.1) - jekyll-include-cache (= 0.2.1) - jekyll-mentions (= 1.6.0) - jekyll-optional-front-matter (= 0.3.2) - jekyll-paginate (= 1.1.0) - jekyll-readme-index (= 0.3.0) - jekyll-redirect-from (= 0.16.0) - jekyll-relative-links (= 0.6.1) - jekyll-remote-theme (= 0.4.3) - jekyll-sass-converter (= 1.5.2) - jekyll-seo-tag (= 2.8.0) - jekyll-sitemap (= 1.4.0) - jekyll-swiss (= 1.0.0) - jekyll-theme-architect (= 0.2.0) - jekyll-theme-cayman (= 0.2.0) - jekyll-theme-dinky (= 0.2.0) - jekyll-theme-hacker (= 0.2.0) - jekyll-theme-leap-day (= 0.2.0) - jekyll-theme-merlot (= 0.2.0) - jekyll-theme-midnight (= 0.2.0) - jekyll-theme-minimal (= 0.2.0) - jekyll-theme-modernist (= 0.2.0) - jekyll-theme-primer (= 0.6.0) - jekyll-theme-slate (= 0.2.0) - jekyll-theme-tactile (= 0.2.0) - jekyll-theme-time-machine (= 0.2.0) - jekyll-titles-from-headings (= 0.5.3) - jemoji (= 0.13.0) - kramdown (= 2.4.0) - kramdown-parser-gfm (= 1.1.0) - liquid (= 4.0.4) - mercenary (~> 0.3) - minima (= 2.5.1) - nokogiri (>= 1.16.2, < 2.0) - rouge (= 3.30.0) - terminal-table (~> 1.4) - webrick (~> 1.8) - github-pages-health-check (1.18.2) - addressable (~> 2.3) - dnsruby (~> 1.60) - octokit (>= 4, < 8) - public_suffix (>= 3.0, < 6.0) - typhoeus (~> 1.3) - html-pipeline (2.14.3) - activesupport (>= 2) - nokogiri (>= 1.4) - http_parser.rb (0.8.0) - i18n (1.14.7) - concurrent-ruby (~> 1.0) - jekyll (3.10.0) - addressable (~> 2.4) - colorator (~> 1.0) - csv (~> 3.0) - em-websocket (~> 0.5) - i18n (>= 0.7, < 2) - jekyll-sass-converter (~> 1.0) - jekyll-watch (~> 2.0) - kramdown (>= 1.17, < 3) - liquid (~> 4.0) - mercenary (~> 0.3.3) - pathutil (~> 0.9) - rouge (>= 1.7, < 4) - safe_yaml (~> 1.0) - webrick (>= 1.0) - jekyll-avatar (0.8.0) - jekyll (>= 3.0, < 5.0) - jekyll-coffeescript (1.2.2) - coffee-script (~> 2.2) - coffee-script-source (~> 1.12) - jekyll-commonmark (1.4.0) - commonmarker (~> 0.22) - jekyll-commonmark-ghpages (0.5.1) - commonmarker (>= 0.23.7, < 1.1.0) - jekyll (>= 3.9, < 4.0) - jekyll-commonmark (~> 1.4.0) - rouge (>= 2.0, < 5.0) - jekyll-default-layout (0.1.5) - jekyll (>= 3.0, < 5.0) - jekyll-feed (0.17.0) - jekyll (>= 3.7, < 5.0) - jekyll-gist (1.5.0) - octokit (~> 4.2) - jekyll-github-metadata (2.16.1) - jekyll (>= 3.4, < 5.0) - octokit (>= 4, < 7, != 4.4.0) - jekyll-include-cache (0.2.1) - jekyll (>= 3.7, < 5.0) - jekyll-mentions (1.6.0) - html-pipeline (~> 2.3) - jekyll (>= 3.7, < 5.0) - jekyll-optional-front-matter (0.3.2) - jekyll (>= 3.0, < 5.0) - jekyll-paginate (1.1.0) - jekyll-readme-index (0.3.0) - jekyll (>= 3.0, < 5.0) - jekyll-redirect-from (0.16.0) - jekyll (>= 3.3, < 5.0) - jekyll-relative-links (0.6.1) - jekyll (>= 3.3, < 5.0) - jekyll-remote-theme (0.4.3) - addressable (~> 2.0) - jekyll (>= 3.5, < 5.0) - jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0) - rubyzip (>= 1.3.0, < 3.0) - jekyll-sass-converter (1.5.2) - sass (~> 3.4) - jekyll-seo-tag (2.8.0) - jekyll (>= 3.8, < 5.0) - jekyll-sitemap (1.4.0) - jekyll (>= 3.7, < 5.0) - jekyll-swiss (1.0.0) - jekyll-theme-architect (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-cayman (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-dinky (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-hacker (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-leap-day (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-merlot (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-midnight (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-minimal (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-modernist (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-primer (0.6.0) - jekyll (> 3.5, < 5.0) - jekyll-github-metadata (~> 2.9) - jekyll-seo-tag (~> 2.0) - jekyll-theme-slate (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-tactile (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-theme-time-machine (0.2.0) - jekyll (> 3.5, < 5.0) - jekyll-seo-tag (~> 2.0) - jekyll-titles-from-headings (0.5.3) - jekyll (>= 3.3, < 5.0) - jekyll-watch (2.2.1) - listen (~> 3.0) - jemoji (0.13.0) - gemoji (>= 3, < 5) - html-pipeline (~> 2.2) - jekyll (>= 3.0, < 5.0) - json (2.12.0) - kramdown (2.4.0) - rexml - kramdown-parser-gfm (1.1.0) - kramdown (~> 2.0) - liquid (4.0.4) - listen (3.9.0) - rb-fsevent (~> 0.10, >= 0.10.3) - rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.6) - mercenary (0.3.6) - mini_portile2 (2.8.9) - minima (2.5.1) - jekyll (>= 3.5, < 5.0) - jekyll-feed (~> 0.9) - jekyll-seo-tag (~> 2.1) - minitest (5.25.5) - net-http (0.6.0) - uri - nokogiri (1.18.8) - mini_portile2 (~> 2.8.2) - racc (~> 1.4) - nokogiri (1.18.8-aarch64-linux-gnu) - racc (~> 1.4) - nokogiri (1.18.8-aarch64-linux-musl) - racc (~> 1.4) - nokogiri (1.18.8-arm-linux-gnu) - racc (~> 1.4) - nokogiri (1.18.8-arm-linux-musl) - racc (~> 1.4) - nokogiri (1.18.8-arm64-darwin) - racc (~> 1.4) - nokogiri (1.18.8-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.18.8-x86_64-linux-gnu) - racc (~> 1.4) - nokogiri (1.18.8-x86_64-linux-musl) - racc (~> 1.4) - octokit (4.25.1) - faraday (>= 1, < 3) - sawyer (~> 0.9) - pathutil (0.16.2) - forwardable-extended (~> 2.6) - public_suffix (5.1.1) - racc (1.8.1) - rb-fsevent (0.11.2) - rb-inotify (0.11.1) - ffi (~> 1.0) - rexml (3.4.1) - rouge (3.30.0) - rubyzip (2.4.1) - safe_yaml (1.0.5) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sawyer (0.9.2) - addressable (>= 2.3.5) - faraday (>= 0.17.3, < 3) - securerandom (0.4.1) - simpleidn (0.2.3) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - typhoeus (1.4.1) - ethon (>= 0.9.0) - tzinfo (2.0.6) - concurrent-ruby (~> 1.0) - unicode-display_width (1.8.0) - uri (1.0.3) - webrick (1.9.1) - -PLATFORMS - aarch64-linux - aarch64-linux-gnu - aarch64-linux-musl - arm-linux - arm-linux-gnu - arm-linux-musl - arm64-darwin - x86-linux - x86-linux-gnu - x86-linux-musl - x86_64-darwin - x86_64-linux - x86_64-linux-gnu - x86_64-linux-musl - -DEPENDENCIES - github-pages - jekyll - jekyll-feed - jekyll-paginate - jekyll-remote-theme - jemoji - tzinfo-data - webrick (~> 1.9) - -RUBY VERSION - ruby 3.3.5p100 - -BUNDLED WITH - 2.5.11 diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 29e04c4..0000000 --- a/_config.yml +++ /dev/null @@ -1,117 +0,0 @@ -# Site settings -title: Black Python Devs -domain: blackpythondevs.com -description: > - Black Python Devs - -# baseurl: / # the subpath of your site, e.g. /blog/ -# url: https://blackpythondevs.com # the base hostname & protocol for your site - -# Favicon -# favicon: images/favicon.png - -# Google Analytics id, e.g. "UA-NNNNNNNN-N" -google_analytics: "" - -# Site navigation - each item must have a title, a url and font awesome class. -navigation: - - text: Home - url: / - fa: fa fa-home fa-fw - - text: Blog - url: /blog/ - fa: fa fa-newspaper fa-fw - - text: About Us - url: /about/ - fa: fa fa-info-circle fa-fw - - text: Events - url: /events/ - fa: fa fa-calendar fa-fw - - text: Community - url: /community/ - fa: fa fa-users fa-fw - - text: Support Us - url: /support/ - fa: fa-solid fa-money-check-dollar - -bpdevs: - # Minima date format. - # Refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this. - # - date_format: "%b %-d, %Y" - - # Generate social links in footer. - # - social_links: - - { platform: github, user_url: "https://github.com/BlackPythonDevs/blackpythondevs.github.io" } - - { platform: discord, user_url: "https://discord.gg/XUc3tFqCT3" } - - { platform: linkedin, user_url: "https://www.linkedin.com/groups/14336241/" } - - { platform: mastodon, user_url: "https://mastodon.social/@blackpythondevs" } - - { platform: youtube, user_url: "https://www.youtube.com/@BlackPythonDevs" } - - { platform: x, user_url: "https://x.com/blackpythondevs" } - - { platform: email, user_url: "mailto:contact@blackpythondevs.com" } - -# Build settings -markdown: kramdown -highlighter: rouge - -plugins: - - github-pages - - jemoji - - jekyll-feed - - jekyll-sitemap - - jekyll-paginate -# - jekyll-seo-tag -# - jekyll-redirect-from -# - jekyll-remote-theme - -exclude: - - bin - - CNAME - - CODE_OF_CONDUCT.md - - README.md - - Gemfile* - - node_modules - - package.json - - package-lock.json - - Rakefile - - .idea/ - - .gitattributes - - .gitignore - - .prettierrc - - .prettierignore - - .pytest_cache - - resources - - script - - test - - vendor - - venv - - .venv - - requirements*.txt - - pytest.ini -# timezone: America/Toronto - -permalink: "/:path/" - -collections: - articles: - output: true - permalink: "/:path/" - -defaults: - # - scope: - # path: "" - # values: - # image: /assets/images/cards/default.png - - scope: - path: "" - type: articles - values: - layout: article - -# Set to `true` to show excerpts on the homepage. -# -show_excerpts: true - -paginate: 5 -paginate_path: "/blog/page:num/" diff --git a/_data/leadership.yaml b/_data/leadership.yaml index 22176ad..667d0ea 100644 --- a/_data/leadership.yaml +++ b/_data/leadership.yaml @@ -2,7 +2,7 @@ Executors: - name: Jay Miller title: Executor image: https://github.com/kjaymiller.png - alt: photo of Jayj + alt: photo of Jay - name: Abigail Afi Gbadago title: Executor (Africa) @@ -20,25 +20,25 @@ Executors: title: Vice-Executor (North America) image: /assets/images/keanya.webp -Advisors: +Leaders: - name: Damilola Oladele title: Documentation Lead - name: Doreen Nangira - title: Advisor, Code of Conduct Team Lead - - - name: Benedict Koji Amofah - title: Advisor - - - name: Ronald Maravanyika - title: Advisor - - - name: Kudzayi Bamhare - title: Advisor + title: Code of Conduct Team Lead - name: Sandra Ashipala title: Welcoming Team +Advisors: + - Benedict Koji Amofah + - Ronald Maravanyika + - Kudzayi Bamhare + - Kojo Idrissa + - Carol Willing + - Jeff Triplett + - Dr. Kari L. Jordan + Council: - Dawn Wages - Sarah Abderemane diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html deleted file mode 100644 index 8481967..0000000 --- a/_includes/disqus_comments.html +++ /dev/null @@ -1,20 +0,0 @@ -{%- if page.comments != false and jekyll.environment == "production" -%} - -
- - -{%- endif -%} diff --git a/_includes/latest-posts.html b/_includes/latest-posts.html deleted file mode 100644 index f926d64..0000000 --- a/_includes/latest-posts.html +++ /dev/null @@ -1,34 +0,0 @@ -{% if site.paginate %} {% assign posts = paginator.posts %} {% else %} {% assign posts = site.posts %} {% endif %} {%- if posts.size > 0 -%} {%- if page.list_title -%} -

{{ page.list_title }}

-{%- endif -%} -
- {%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} {% assign count = 0 %} {% assign limit_posts = 3 %} {%- for post in posts -%} {%- if count < limit_posts -%} -
-

- {{ post.title | escape }} -

-

{{ post.date | date: date_format }}

- {%- if site.show_excerpts -%} -

{{ post.description}}

- {%- endif -%} -
- {%- assign count = count | plus:1 -%} {%- endif -%} {%- endfor -%} -
- -{% if site.paginate %} -
- -
-{%- endif %} {%- endif -%} diff --git a/_includes/posts.html b/_includes/posts.html deleted file mode 100644 index c723cbc..0000000 --- a/_includes/posts.html +++ /dev/null @@ -1,49 +0,0 @@ -{% if site.paginate %} - {% assign posts = paginator.posts %} -{% else %} - {% assign posts = site.posts %} -{% endif %} - -{%- if posts.size > 0 -%} - {%- if page.list_title -%} -

{{ page.list_title }}

- {%- endif -%} -
- {%- assign date_format = site.bpdevs.date_format | default: "%b %-d, %Y" -%} - {% assign count = 0 %} - {%- for post in posts -%} -
-

- - {{ post.title | escape }} - -

- - {%- if site.show_excerpts -%} -

- {{ post.description }} -

- {%- endif -%} -
- {%- assign count = count | plus:1 -%} - {%- endfor -%} -
- - {% if site.paginate %} - - - {%- endif %} - -{%- endif -%} diff --git a/_includes/social-item.html b/_includes/social-item.html deleted file mode 100644 index a3ec91a..0000000 --- a/_includes/social-item.html +++ /dev/null @@ -1,7 +0,0 @@ -
  • {% assign entry = include.item %} - - - - - -
  • diff --git a/_includes/social.html b/_includes/social.html deleted file mode 100644 index d1806c8..0000000 --- a/_includes/social.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/_layouts/_includes/disqus_comments.html b/_layouts/_includes/disqus_comments.html new file mode 100644 index 0000000..5f9a97a --- /dev/null +++ b/_layouts/_includes/disqus_comments.html @@ -0,0 +1,21 @@ +{%- if page.comments != false and jekyll.environment == "production" -%} + +
    + + +{%- endif -%} diff --git a/_includes/footer.html b/_layouts/_includes/footer.html similarity index 82% rename from _includes/footer.html rename to _layouts/_includes/footer.html index 9a88f25..5664138 100644 --- a/_includes/footer.html +++ b/_layouts/_includes/footer.html @@ -10,8 +10,8 @@

    About us

    diff --git a/_layouts/_includes/foundational_supporters.html b/_layouts/_includes/foundational_supporters.html new file mode 100644 index 0000000..3607672 --- /dev/null +++ b/_layouts/_includes/foundational_supporters.html @@ -0,0 +1,25 @@ +
    +

    Foundational Supporters

    +

    Black Python Devs operates primarily on support from individuals. It is those supporters that serve as the foundation for what we do.

    +

    We would like to recognize our supporters who donate at least $200 each year.

    + {% for year in data %} +
    +

    {{year}} Supporters

    +
    + {% for data_lists in data[year] | slice(3) %} +
    +
    +
      + {% for supporter in data_lists %} +
    • {{supporter}}
    • + {% endfor %} +
    +
    +
    + {% endfor %} +
    +
    + {% endfor %} +

    You can view the archive of supporters* by year at https://github.com/blackpythondevs/blackpythondevs.

    +

    * Those who marked their desire to remain anonymous have not been included

    +
    diff --git a/_includes/header.html b/_layouts/_includes/header.html similarity index 57% rename from _includes/header.html rename to _layouts/_includes/header.html index 38e8924..93fe073 100644 --- a/_includes/header.html +++ b/_layouts/_includes/header.html @@ -1,37 +1,25 @@ -{% assign t = site.data.locales[page.lang][page.lang] %} +{% set t = locales %}