Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sphinx - theming #1933

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

Merged
merged 87 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6060f77
Add Sphinx Jinja2 custom template bridge
AA-Turner Apr 20, 2021
9b32ce4
Add sphinx theme options and favicon
AA-Turner Apr 20, 2021
2f0875a
Add breadcrumbs template
AA-Turner Apr 20, 2021
6c6da48
Add sidebar template
AA-Turner Apr 20, 2021
9d0ae13
Add search template
AA-Turner Apr 20, 2021
8392119
Add main layout template override
AA-Turner Apr 20, 2021
57673a1
Add javascript overrides
AA-Turner Apr 20, 2021
db6bab6
Add fonts and stylesheets
AA-Turner Apr 20, 2021
76acf20
Add PEP override styles
AA-Turner Apr 20, 2021
e81b54b
Disable search
AA-Turner May 7, 2021
079abff
Control included JavaScript in templates
AA-Turner May 7, 2021
6a9ba7d
Remove old JS (search related)
AA-Turner May 7, 2021
74a7cd2
Add theme config
AA-Turner Jun 12, 2021
f501f61
Update layout.html template to remove inheritance
AA-Turner Jun 12, 2021
222d641
Move layout.html to page.html
AA-Turner Jun 12, 2021
514fea5
Add body jinja code
AA-Turner Jun 12, 2021
13606da
Remove unneeded block
AA-Turner Jun 12, 2021
f1d4971
Remove doc relations functionality
AA-Turner Jun 12, 2021
dc491ee
Use google fonts, remove local files
AA-Turner Jun 12, 2021
b8ef2d4
Move templates folder so as not to include in built static files
AA-Turner Jun 12, 2021
1975119
Remove PEPTemplateLoader as the `pep_id` filter is not used
AA-Turner Jun 12, 2021
57ee102
Remove breadcrumbs.html
AA-Turner Jun 12, 2021
c707253
Move static CSS and JavaScript one level up
AA-Turner Jun 12, 2021
b9475dd
Run PurgeCSS
AA-Turner Jun 12, 2021
0c5b30d
Remove more unused selectors
AA-Turner Jun 12, 2021
6342abd
Remove more unused selectors / prefixes
AA-Turner Jun 13, 2021
5077817
Start to rearrange and de-duplicate
AA-Turner Jun 13, 2021
fbbdbef
Continue removing, also consolidate some classes
AA-Turner Jun 13, 2021
aa6ea5a
More grouping & rearranging
AA-Turner Jun 13, 2021
0687404
Fix parsing for definition list
AA-Turner Jun 13, 2021
2271fc9
Clean up code and blockquote rules
AA-Turner Jun 13, 2021
56f6949
Add explicit CSS overrides file
AA-Turner Jun 13, 2021
eb48d34
Move blockquote style to overrides
AA-Turner Jun 13, 2021
56204ba
Update code style
AA-Turner Jun 13, 2021
69fbe9d
Header styles
AA-Turner Jun 13, 2021
ef1d0b0
Update breadcrumbs and move .text rules to groups
AA-Turner Jun 13, 2021
77b16d4
Move hyphenation to explicit overrides
AA-Turner Jun 13, 2021
ddcc4ab
Move bottom margin & line height to explicit overrides
AA-Turner Jun 13, 2021
d0fec5c
Update monospace fonts
AA-Turner Jun 13, 2021
83a3229
Make style-pydotorg-compat.css standalone
AA-Turner Jun 13, 2021
f55dcec
Fix footer metadata display
AA-Turner Jun 13, 2021
3024a5d
Improve PEPContents, use HTML title elements and use self-backlinks
AA-Turner Jun 13, 2021
121b119
Adjust header styles
AA-Turner Jun 13, 2021
535d3c3
Adjust admonitions
AA-Turner Jun 13, 2021
16a650f
Adjust definition lists
AA-Turner Jun 13, 2021
22789d0
Add comments
AA-Turner Jun 13, 2021
2806db9
Reorder rule groups (mostly) alphabetically
AA-Turner Jun 13, 2021
df66b2d
Use rem units
AA-Turner Jun 13, 2021
35a9dd7
Merge pep.css and style.css
AA-Turner Jun 13, 2021
9c86b52
Remove main legacy CSS reset
AA-Turner Jun 13, 2021
b3bdbe8
Remove some print rules
AA-Turner Jun 13, 2021
16e1968
Remove media query rules with non-existent targets
AA-Turner Jun 13, 2021
a862d40
Update media queries & breakpoints
AA-Turner Jun 13, 2021
1f26fb4
Remove two levels of div elements
AA-Turner Jun 13, 2021
5357af5
Move print to mq.css
AA-Turner Jun 13, 2021
1db6b5d
Use <link /> tag for fonts, not CSS import
AA-Turner Jun 13, 2021
9a0064e
Fix indentation error from RST conversion
AA-Turner Jun 13, 2021
9eae911
Remove duplicate table of contents
AA-Turner Jun 13, 2021
54fdfc2
Fix footnote fixing
AA-Turner Jun 13, 2021
c766f77
Use tango pygments style
AA-Turner Jun 13, 2021
e1fa5c1
Update page header
AA-Turner Jun 13, 2021
b8fcf1a
Add border to PEP header table
AA-Turner Jun 13, 2021
616976e
Remove compat file
AA-Turner Jun 13, 2021
76c3670
Merge customsidebar.html into page.html
AA-Turner Jun 13, 2021
3de7610
Disambiguate and rename pep theme as such
AA-Turner Jun 13, 2021
ecd1074
Handle index file for directory and file building
AA-Turner Jun 13, 2021
99027b5
Change footer metadata to paragraphs from spans
AA-Turner Jun 14, 2021
1c82ea8
Simplify new title node logic
AA-Turner Jun 14, 2021
256f807
Update & further simplify styles
AA-Turner Jun 14, 2021
e0027e5
Add notes on colours used
AA-Turner Jun 14, 2021
2ca667e
Update admonition colours
AA-Turner Jun 15, 2021
0ded9fd
Simplify the mask email algorithm
AA-Turner Jun 15, 2021
ed1d6cd
Stop using .settings.pep_base_url in various places
AA-Turner Jun 15, 2021
1905480
Remove unneeded escapes in page.html
AA-Turner Jun 15, 2021
a4ca92e
Add clean up step for deployments
AA-Turner Jun 15, 2021
8c3daaa
Update selectors for sphinx 4
AA-Turner Jun 16, 2021
b968c1a
Register PEPTranslator for dirhtml builder
AA-Turner Jun 16, 2021
ae433d1
Add meta description
AA-Turner Jun 16, 2021
029ad2e
Update config values dependent on builder used
AA-Turner Jun 16, 2021
cda149f
Update create_index_file for multiple builders
AA-Turner Jun 16, 2021
d5a5e7e
Fix sidebar position
AA-Turner Jun 16, 2021
8d66f82
Update margins
AA-Turner Jun 18, 2021
e52b0da
Reduce padding and margins for smaller screens
AA-Turner Jun 21, 2021
e98760d
Update pep_sphinx_extensions/pep_processor/transforms/pep_contents.py
AA-Turner Jun 29, 2021
bc3d560
Remove recursion check in Contents
AA-Turner Jun 29, 2021
ab8c2c1
Fix literal markup in PEP titles
AA-Turner Jun 30, 2021
792e013
Remove extraneous links within section titles
AA-Turner Jun 30, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge customsidebar.html into page.html
  • Loading branch information
AA-Turner committed Jun 29, 2021
commit 76c3670647b59dfb8735876fb788e13161dca04c
11 changes: 0 additions & 11 deletions pep_sphinx_extensions/theme/templates/customsidebar.html

This file was deleted.

11 changes: 10 additions & 1 deletion pep_sphinx_extensions/theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ <h1>Python Enhancement Proposals</h1>
</header>
<article class="text">{{ body }}</article>
<aside class="left-sidebar">
{% include "customsidebar.html" %}
{# Table of Contents #}
{%- if display_toc %}
<h2>Contents</h2>
{{ toc }}
{%- endif %}
{# Source link #}
{%- if show_source and has_source and sourcename %}
<br />
<strong><a href="https://github.com/python/peps/blob/master/{{sourcename}}">Page Source (GitHub)</a></strong>
{%- endif %}
</aside>
</div>

Expand Down