Skip to content

Commit c78a350

Browse files
authored
Merge pull request #1 from kattni/tooling/mkdocs
Initial step of migration of beeware.org from Lektor to MkDocs
2 parents b1a2bbd + 04089d6 commit c78a350

File tree

299 files changed

+180552
-27
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+180552
-27
lines changed

.github/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
3+
multi-ecosystem-groups:
4+
dependencies:
5+
schedule:
6+
# Check for updates on the first Sunday of every month, 8PM UTC
7+
interval: "cron"
8+
cronjob: "0 20 * * sun#1"
9+
10+
updates:
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
patterns: ["*"]
14+
multi-ecosystem-group: "dependencies"
15+
16+
- package-ecosystem: "pip"
17+
directory: "/"
18+
patterns: ["*"]
19+
multi-ecosystem-group: "dependencies"

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
workflow_call:
8+
9+
# Cancel active CI runs for a PR before starting another run
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
defaults:
15+
run:
16+
shell: bash # https://github.com/beeware/briefcase/pull/912
17+
18+
env:
19+
FORCE_COLOR: "1"
20+
21+
jobs:
22+
pre-commit:
23+
name: Pre-commit checks
24+
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
25+
with:
26+
pre-commit-source: "--group pre-commit"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Update pre-commit
2+
3+
on:
4+
schedule:
5+
- cron: "0 20 1-7 * */7" # First Sunday of the month @ 2000 UTC
6+
# Reading this expression: At 20:00 on every day-of-month from 1 through 7 if
7+
# it's on every 7th day-of-week, i.e. any one of the first seven days of the
8+
# month as long as it is a Sunday.
9+
workflow_dispatch:
10+
11+
jobs:
12+
pre-commit-update:
13+
name: Update pre-commit
14+
uses: beeware/.github/.github/workflows/pre-commit-update.yml@main
15+
secrets: inherit
16+
with:
17+
pre-commit-source: pre-commit
18+
create-changenote: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ comment.md
44

55
.idea
66
.tox
7+
__pycache__

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ repos:
99
# PO files may not have a trailing EOL, as they are tool generated
1010
exclude: "locales"
1111
- id: trailing-whitespace
12+
# TODO: Enable for final.
13+
# - repo: https://github.com/rvben/rumdl-pre-commit
14+
# rev: v0.0.155
15+
# hooks:
16+
# - id: rumdl

.pyspelling.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ matrix:
55
- docs/spelling_wordlist
66
output: _build/dictionary/python.dic
77
sources:
8-
- '**/*.md'
8+
- 'docs/**/*.md'
9+
- README.md
910
pipeline:
1011
- pyspelling.filters.markdown:
1112
markdown_extensions:

.readthedocs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ build:
2121
- python -m tox -e docs-lint
2222
build:
2323
html:
24-
- python -m tox -e docs-$READTHEDOCS_LANGUAGE -- --output=$READTHEDOCS_OUTPUT/html/
24+
# TODO: Remove --build-with-warnings before going live.
25+
- python -m tox -e docs-$READTHEDOCS_LANGUAGE -- --build-with-warnings --output=$READTHEDOCS_OUTPUT/html/

CODE_OF_CONDUCT.md

Lines changed: 159 additions & 0 deletions
Large diffs are not rendered by default.

docs-redirect/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This file is intentionally blank for the purposes of creating the `en` directory.
1+
This file is intentionally blank for the purposes of creating the `en` directory.

docs/config.yml

Lines changed: 109 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,64 @@
11
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
22
copyright: © Russell Keith-Magee
33

4+
nav:
5+
- About:
6+
- about/index.md
7+
- What is BeeWare?: about/overview.md
8+
- The Bee Team: about/team.md
9+
- History and Philosophy: about/history.md
10+
- Contact: about/contact.md
11+
- Branding guidelines: about/branding.md
12+
- Documentation:
13+
- docs/index.md
14+
- Community:
15+
- community/index.md
16+
- BeeWare Community Code of Conduct: community/code-of-conduct.md
17+
- Governance: community/governance.md
18+
- Contributing:
19+
- contributing/index.md
20+
- First-time contributors: contributing/first-time-contributors.md
21+
- Contribution guide:
22+
- contributing/guide/index.md
23+
- Fix an issue: contributing/guide/what/fix-issue.md
24+
- Implement a new feature: contributing/guide/what/implement-feature.md
25+
- Write documentation: contributing/guide/what/write-docs.md
26+
- Triage an issue: contributing/guide/what/triage.md
27+
- Review a pull request: contributing/guide/what/review-pr.md
28+
- Propose a new feature: contributing/guide/what/propose-feature.md
29+
- Translate content: contributing/guide/what/translate.md
30+
- Use the tools: contributing/guide/what/use-tools.md
31+
- Setting up a development environment: contributing/guide/how/dev-environment.md
32+
- Reproducing an issue: contributing/guide/how/reproduce-issue.md
33+
- Working from a branch: contributing/guide/how/branches.md
34+
- Avoiding scope creep: contributing/guide/how/scope-creep.md
35+
- Writing, running, and testing code: contributing/guide/how/write-code.md
36+
- Building documentation: contributing/guide/how/build-docs.md
37+
- Writing documentation: contributing/guide/how/write-docs.md
38+
- Adding a change note: contributing/guide/how/change-note.md
39+
- Submitting a pull request: contributing/guide/how/submit-pr.md
40+
- Providing a review: contributing/guide/how/review-pr.md
41+
- Submitting a new issue: contributing/guide/how/new-issue.md
42+
- Proposing a new feature: contributing/guide/how/propose-feature.md
43+
- Translating content: contributing/guide/how/translate.md
44+
- Pull request review process: contributing/guide/next/pr-review.md
45+
- Release process: contributing/guide/next/release.md
46+
- Code style guide: contributing/guide/style/code-style-guide.md
47+
- Documentation style guide: contributing/guide/style/docs-style-guide.md
48+
- Sprint guide: contributing/sprint-guide.md
49+
- Challenge coins: contributing/challenge-coins.md
50+
- News:
51+
- news/index.md
52+
- Sponsor:
53+
- membership/index.md
54+
455
not_in_nav: |
556
/index.md
657
58+
exclude_docs: | # This is the only way to keep the build from parsing the team bio files.
59+
!.*
60+
/about/team/
61+
762
validation:
863
omitted_files: warn
964
absolute_links: relative_to_docs
@@ -13,6 +68,13 @@ validation:
1368
extra:
1469
project_name: beeware
1570
formal_name: BeeWare
71+
hide_dev_links: true
72+
website: true
73+
translated: true
74+
min_python_version: "3.10" # The oldest supported Python version
75+
min_python_version_tag: "310" # The tag version of the minimum python version
76+
recent_python_version: "3.13" # The newest Python version known to work on all platforms
77+
docs_python_version: "3.13" # The version of Python required to build the documentation
1678
social:
1779
- icon: fontawesome/brands/github
1880
link: https://github.com/beeware
@@ -23,6 +85,15 @@ extra:
2385
- icon: fontawesome/brands/discord
2486
link: https://beeware.org/bee/chat/
2587
name: BeeWare on Discord
88+
- icon: fontawesome/solid/square-rss
89+
name: BeeWare blog RSS feed
90+
link: https://beeware.org/news/buzz/atom.xml
91+
github_icon: <i class="fa-github fa-brands" aria-hidden="true"></i>
92+
generator: false
93+
94+
95+
extra_css:
96+
- stylesheets/beeware.css
2697

2798
theme:
2899
name: material
@@ -32,10 +103,12 @@ theme:
32103
features:
33104
- content.tabs.link
34105
- toc.follow
35-
- navigation.indexes
36-
- navigation.footer
37106
- navigation.tabs
38107
- navigation.tabs.sticky
108+
- navigation.indexes
109+
- navigation.sections
110+
- navigation.path
111+
- navigation.expand
39112
- search.suggest
40113
- search.highlight
41114
- search.share
@@ -66,6 +139,7 @@ markdown_extensions:
66139
pymdownx.superfences: {}
67140
pymdownx.blocks.admonition: {}
68141
pymdownx.blocks.caption: {}
142+
pymdownx.details: {}
69143
pymdownx.blocks.tab:
70144
alternate_style: true
71145
pymdownx.snippets:
@@ -76,10 +150,39 @@ markdown_extensions:
76150
permalink: true
77151
title: On this page
78152
attr_list: {}
153+
md_in_html: {}
154+
admonition: {} # Enabled for all admonition types EXCEPT note and admonition (which defaults to note)
79155

80156
plugins:
81157
search: {}
82-
autorefs: {}
83-
literate-nav:
84-
nav_file: SUMMARY.md
85-
macros: {}
158+
blog:
159+
blog_dir: news
160+
post_url_format: "{categories}/{slug}"
161+
post_url_max_categories: 1
162+
categories_url_format: "{slug}"
163+
categories_allowed:
164+
- Buzz
165+
- Events
166+
- Resources
167+
autorefs:
168+
resolve_closest: true # autorefs warns of the Usage headings begin duplicates without this - we will have to assign unique ids to all of them otherwise
169+
macros:
170+
module_name: macros
171+
include_yaml:
172+
- team: en/news/.authors.yml
173+
174+
meta: {}
175+
rss:
176+
feed_title: "BeeWare: The Buzz"
177+
feed_description: News and events for the BeeWare project.
178+
match_path: "news/posts/.*"
179+
use_git: false # Forces it to read the dates from the frontmatter.
180+
date_from_meta:
181+
as_creation: "date"
182+
datetime_format: "%Y-%m-%d"
183+
categories:
184+
- categories
185+
feeds_filenames:
186+
rss_created: news/buzz/atom.xml
187+
# image: images/brutus.png # Update to a Brutus URL
188+
abstract_chars_count: -1

0 commit comments

Comments
 (0)