-
Notifications
You must be signed in to change notification settings - Fork 5
Add related projects (StanFromIreland) #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
StanFromIreland
wants to merge
16
commits into
main
Choose a base branch
from
related-projects-stan
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
309b43b
Add related projects links
m-aciek ffa5a39
Change title in the header, let's make it clear it's about the docume…
m-aciek d449137
Update base.html.jinja
m-aciek 4f8bdee
Add target=blank and translation into pypa projects titles
m-aciek bcc4739
Display Documentation/Docs basing on the screen width
m-aciek 72d07fb
Fix spacing
m-aciek 6d5aa24
Simplify file copying
m-aciek 1a78b84
Fix class names in header
m-aciek e804cd2
Set python3.14 as default language version for pre-commit
m-aciek a3dbf00
Improve styling
m-aciek 8056bc1
Revert "Set python3.14 as default language version for pre-commit"
m-aciek 7edbd1b
Use shutil's copyfile
m-aciek e7da26d
Stan's proposal for the UI
StanFromIreland e9fbf10
Add oxipng to pre-commit
StanFromIreland 1a50ea3
Prefer doc link
StanFromIreland 96a6154
Apply suggestions from code review
StanFromIreland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import tomllib | ||
| from pathlib import Path | ||
| from shutil import copyfile, copytree | ||
|
|
||
| from jinja2 import Environment, FileSystemLoader | ||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
| Path('build').mkdir(parents=True, exist_ok=True) | ||
|
|
||
| with open('related_projects.toml', 'rb') as f: | ||
| data = tomllib.load(f) | ||
| projects = data['projects'] | ||
|
|
||
| env = Environment(loader=FileSystemLoader('templates')) | ||
| related = env.get_template('related.html.jinja').render(projects=projects) | ||
|
|
||
| Path('build/related.html').write_text(related) | ||
| copyfile('src/style.css', 'build/style.css') | ||
| copyfile('src/logo.png', 'build/logo.png') | ||
| copytree('src/images', 'build/images', dirs_exist_ok=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| [[projects]] | ||
| name = "packaging.python.org" | ||
| description = "Python Packaging User Guide translation" | ||
| logo = "images/pypa_logo.png" | ||
| url = "https://hosted.weblate.org/projects/pypa/packaging-python-org/#information" | ||
|
|
||
| [[projects]] | ||
| name = "PyPI (Warehouse)" | ||
| description = "Python Package Index translation" | ||
| logo = "images/pypi_logo.svg" | ||
| url = "https://hosted.weblate.org/projects/pypa/warehouse/#information" | ||
|
|
||
| [[projects]] | ||
| name = "Scientific Python" | ||
| description = "Scientific Python ecosystem translations" | ||
| logo = "images/scientific-python_logo.svg" | ||
| url = "https://scientific-python-translations.github.io/status/" | ||
|
|
||
| [[projects]] | ||
| name = "micro:bit" | ||
| description = "micro:bit translation programme" | ||
| logo = "images/microbit_logo.svg" | ||
| url = "https://microbit.org/translate/" | ||
|
|
||
| [[projects]] | ||
| name = "Django" | ||
| description = "Localizing Django documentation" | ||
StanFromIreland marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| logo = "images/django_logo.svg" | ||
| url = "https://docs.djangoproject.com/en/dev/internals/contributing/localizing/" | ||
|
|
||
| [[projects]] | ||
| name = "Sphinx" | ||
| description = "Sphinx documentation generator translation" | ||
| logo = "images/sphinx_logo.png" | ||
| url = "https://www.sphinx-doc.org/en/master/usage/advanced/intl.html#contributing-to-sphinx-reference-translation" | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.