-
Notifications
You must be signed in to change notification settings - Fork 5
Add related projects, change title to Documentation Translations #158
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
base: main
Are you sure you want to change the base?
Conversation
Revert to original view box
|
IMO, this is better suited for a "What are some other projects I can contributed to?" (or similar) Q&A in the FAQ in the devguide. |
templates/base.html.jinja
Outdated
| <a href="./"> | ||
| <img src="logo.png" style="height: 2rem;" alt="Python logo"> | ||
| <span style="font-size: 1.25rem; font-weight: 700; color: #4a4a4a">Translation Dashboard</span> | ||
| <span style="font-size: 1.25rem; font-weight: 700; color: #4a4a4a">Documentation Translations</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generate.py
Outdated
| related = env.get_template('related.html.jinja').render() | ||
|
|
||
| Path('build/style.css').write_bytes(Path('src/style.css').read_bytes()) | ||
| Path('build/logo.png').write_bytes(Path('src/logo.png').read_bytes()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated thought: use shutil.copyfile('src/logo.png', 'build/logo.png')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, 3.14 allows us to stay with pathlib for the copy, let's try to switch to 3.14? π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use a Path object when there is no path manipulation at all? The string paths are already in the source; use shutil and let the kernel do the copy of bytes instead of Python π
(This is extremeley minor relative to the times of cloning and building.)
In my opinion it would be wasting the visibility opportunity, to hide other projects in the devguide. I personally would like this dashboard to aspire to be a homepage for Python ecosystem translation contributors. I think some visitors (by the domain only) would expect to see such information here. |
Ah, dots in class names π€¦ |


Closes #146.
π Dashboard preview π: https://python-docs-translations.github.io/dashboard/158/merge/