|
123 | 123 | # this pattern is also used for metadata: |
124 | 124 | # something.meta -> something.pl.meta |
125 | 125 |
|
126 | | -TRANSLATIONS_PATTERN = '{path}.{lang}.{ext}' |
| 126 | +TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}" |
127 | 127 |
|
128 | 128 | # Links for the sidebar / navigation bar. (translatable) |
129 | 129 | # This is a dict. The keys are languages, and values are tuples. |
|
146 | 146 | # may present issues if the menu is too large. |
147 | 147 | # (in Bootstrap, the navbar can grow too large and cover contents.) |
148 | 148 | # WARNING: If you link to directories, make sure to follow |
149 | | -# ``STRIP_INDEXES``. If it’s set to ``True``, end your links |
| 149 | +# ``STRIP_INDEXES``. If it's set to ``True``, end your links |
150 | 150 | # with a ``/``, otherwise end them with ``/index.html`` — or |
151 | | -# else they won’t be highlighted when active. |
| 151 | +# else they won't be highlighted when active. |
152 | 152 |
|
153 | 153 | NAVIGATION_LINKS = { |
154 | 154 | DEFAULT_LANG: ( |
|
166 | 166 | ( |
167 | 167 | ( |
168 | 168 | (CHAT, "Chat room"), |
169 | | - ("https://github.com/PlasmaPy/PlasmaPy/discussions", "GitHub Discussions"), |
| 169 | + ( |
| 170 | + "https://github.com/PlasmaPy/PlasmaPy/discussions", |
| 171 | + "GitHub Discussions", |
| 172 | + ), |
170 | 173 | (MAILING_LIST, "Email list"), |
171 | 174 | (FEEDBACK_BOX, "Suggestion box"), |
172 | 175 | ), |
|
191 | 194 | # Alternative navigation links. Works the same way NAVIGATION_LINKS does, |
192 | 195 | # although themes may not always support them. (translatable) |
193 | 196 | # (Bootstrap 4: right-side of navbar, Bootblog 4: right side of title) |
194 | | -NAVIGATION_ALT_LINKS = { |
195 | | - DEFAULT_LANG: () |
196 | | -} |
| 197 | +NAVIGATION_ALT_LINKS = {DEFAULT_LANG: ()} |
197 | 198 |
|
198 | 199 | # Name of the theme to use. |
199 | 200 | THEME = "bootstrap4" |
200 | 201 |
|
201 | 202 | # Primary color of your theme. This will be used to customize your theme. |
202 | 203 | # Must be a HEX value. |
203 | | -THEME_COLOR = '#5670d4' |
| 204 | +THEME_COLOR = "#5670d4" |
204 | 205 |
|
205 | 206 | # Theme configuration. Fully theme-dependent. (translatable) |
206 | 207 | # Examples below are for bootblog4. |
|
310 | 311 | # |
311 | 312 | # 0 = using DATE_FORMAT and TIMEZONE |
312 | 313 | # 1 = using JS_DATE_FORMAT and local user time (via moment.js) |
313 | | -# 2 = using a string like “2 days ago” |
| 314 | +# 2 = using a string like "2 days ago" |
314 | 315 | # |
315 | 316 | # Your theme must support it, Bootstrap already does. |
316 | 317 | # DATE_FANCINESS = 0 |
|
341 | 342 | # 'markdown' is Markdown |
342 | 343 | # 'html' assumes the file is HTML and just copies it |
343 | 344 | COMPILERS = { |
344 | | - "rest": ('.rst', '.txt'), |
345 | | - "markdown": ('.md', '.mdown', '.markdown'), |
346 | | - "textile": ('.textile',), |
347 | | - "txt2tags": ('.t2t',), |
348 | | - "bbcode": ('.bb',), |
349 | | - "wiki": ('.wiki',), |
350 | | - "ipynb": ('.ipynb',), |
351 | | - "html": ('.html', '.htm'), |
| 345 | + "rest": (".rst", ".txt"), |
| 346 | + "markdown": (".md", ".mdown", ".markdown"), |
| 347 | + "textile": (".textile",), |
| 348 | + "txt2tags": (".t2t",), |
| 349 | + "bbcode": (".bb",), |
| 350 | + "wiki": (".wiki",), |
| 351 | + "ipynb": (".ipynb",), |
| 352 | + "html": (".html", ".htm"), |
352 | 353 | # PHP files are rendered the usual way (i.e. with the full templates). |
353 | 354 | # The resulting files have .php extensions, making it possible to run |
354 | 355 | # them without reconfiguring your server to recognize them. |
355 | | - "php": ('.php',), |
| 356 | + "php": (".php",), |
356 | 357 | # Pandoc detects the input from the source filename |
357 | 358 | # but is disabled by default as it would conflict |
358 | 359 | # with many of the others. |
|
423 | 424 |
|
424 | 425 | # Set descriptions for tag pages to make them more interesting. The |
425 | 426 | # default is no description. The value is used in the meta description |
426 | | -# and displayed underneath the tag list or index page’s title. |
| 427 | +# and displayed underneath the tag list or index page's title. |
427 | 428 | # TAG_DESCRIPTIONS = { |
428 | 429 | # DEFAULT_LANG: { |
429 | 430 | # "blogging": "Meta-blog posts about blogging.", |
|
442 | 443 | # If you do not want to display a tag publicly, you can mark it as hidden. |
443 | 444 | # The tag will not be displayed on the tag list page and posts. |
444 | 445 | # Tag pages will still be generated. |
445 | | -HIDDEN_TAGS = ['mathjax'] |
| 446 | +HIDDEN_TAGS = ["mathjax"] |
446 | 447 |
|
447 | 448 | # Only include tags on the tag list/overview page if there are at least |
448 | 449 | # TAGLIST_MINIMUM_POSTS number of posts or more with every tag. Every tag |
|
496 | 497 |
|
497 | 498 | # Set descriptions for category pages to make them more interesting. The |
498 | 499 | # default is no description. The value is used in the meta description |
499 | | -# and displayed underneath the category list or index page’s title. |
| 500 | +# and displayed underneath the category list or index page's title. |
500 | 501 | # CATEGORY_DESCRIPTIONS = { |
501 | 502 | # DEFAULT_LANG: { |
502 | 503 | # "blogging": "Meta-blog posts about blogging.", |
|
575 | 576 |
|
576 | 577 | # Set descriptions for author pages to make them more interesting. The |
577 | 578 | # default is no description. The value is used in the meta description |
578 | | -# and displayed underneath the author list or index page’s title. |
| 579 | +# and displayed underneath the author list or index page's title. |
579 | 580 | # AUTHOR_PAGES_DESCRIPTIONS = { |
580 | 581 | # DEFAULT_LANG: { |
581 | 582 | # "Juanjo Conti": "Python coder and writer.", |
|
587 | 588 | # If you do not want to display an author publicly, you can mark it as hidden. |
588 | 589 | # The author will not be displayed on the author list page and posts. |
589 | 590 | # Tag pages will still be generated. |
590 | | -HIDDEN_AUTHORS = ['Guest'] |
| 591 | +HIDDEN_AUTHORS = ["Guest"] |
591 | 592 |
|
592 | 593 | # Final location for the main blog page and sibling paginated pages is |
593 | 594 | # output / TRANSLATION[lang] / INDEX_PATH / index-*.html |
594 | 595 | # (translatable) |
595 | 596 | INDEX_PATH = "news/" |
596 | 597 |
|
597 | | -# Optional HTML that displayed on “main” blog index.html files. |
| 598 | +# Optional HTML that displayed on "main" blog index.html files. |
598 | 599 | # May be used for a greeting. (translatable) |
599 | | -FRONT_INDEX_HEADER = { |
600 | | - DEFAULT_LANG: '' |
601 | | -} |
| 600 | +FRONT_INDEX_HEADER = {DEFAULT_LANG: ""} |
602 | 601 |
|
603 | 602 | # Create per-month archives instead of per-year |
604 | 603 | # CREATE_MONTHLY_ARCHIVE = False |
|
697 | 696 | # For more details, read the manual: |
698 | 697 | # https://getnikola.com/handbook.html#deploying-to-github |
699 | 698 | # You will need to configure the deployment branch on GitHub. |
700 | | -GITHUB_SOURCE_BRANCH = 'src' |
701 | | -GITHUB_DEPLOY_BRANCH = 'main' |
| 699 | +GITHUB_SOURCE_BRANCH = "src" |
| 700 | +GITHUB_DEPLOY_BRANCH = "main" |
702 | 701 |
|
703 | 702 | # The name of the remote where you wish to push to, using github_deploy. |
704 | | -GITHUB_REMOTE_NAME = 'origin' |
| 703 | +GITHUB_REMOTE_NAME = "origin" |
705 | 704 |
|
706 | 705 | # Whether or not github_deploy should commit to the source branch automatically |
707 | 706 | # before deploying. |
|
734 | 733 | # argument. |
735 | 734 | # |
736 | 735 | # By default, only .php files uses filters to inject PHP into |
737 | | -# Nikola’s templates. All other filters must be enabled through FILTERS. |
| 736 | +# Nikola's templates. All other filters must be enabled through FILTERS. |
738 | 737 | # |
739 | 738 | # Many filters are shipped with Nikola. A list is available in the manual: |
740 | 739 | # <https://getnikola.com/handbook.html#post-processing-filters> |
|
858 | 857 | # |
859 | 858 | # .. image:: /images/tesla.jpg |
860 | 859 | # |
861 | | -# See the Nikola Handbook for details (in the “Embedding Images” and |
862 | | -# “Thumbnails” sections) |
| 860 | +# See the Nikola Handbook for details (in the "Embedding Images" and |
| 861 | +# "Thumbnails" sections) |
863 | 862 |
|
864 | 863 | # Images will be scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE |
865 | 864 | # options, but will have to be referenced manually to be visible on the site |
866 | 865 | # (the thumbnail has ``.thumbnail`` added before the file extension by default, |
867 | 866 | # but a different naming template can be configured with IMAGE_THUMBNAIL_FORMAT). |
868 | 867 |
|
869 | | -IMAGE_FOLDERS = {'images': 'images'} |
| 868 | +IMAGE_FOLDERS = {"images": "images"} |
870 | 869 | # IMAGE_THUMBNAIL_SIZE = 400 |
871 | 870 | # IMAGE_THUMBNAIL_FORMAT = '{name}.thumbnail{ext}' |
872 | 871 |
|
|
951 | 950 | # HTML fragments with the Read more... links. |
952 | 951 | # The following tags exist and are replaced for you: |
953 | 952 | # {link} A link to the full post page. |
954 | | -# {read_more} The string “Read more” in the current language. |
| 953 | +# {read_more} The string "Read more" in the current language. |
955 | 954 | # {reading_time} An estimate of how long it will take to read the post. |
956 | 955 | # {remaining_reading_time} An estimate of how long it will take to read the post, sans the teaser. |
957 | | -# {min_remaining_read} The string “{remaining_reading_time} min remaining to read” in the current language. |
| 956 | +# {min_remaining_read} The string "{remaining_reading_time} min remaining to read" in the current language. |
958 | 957 | # {paragraph_count} The amount of paragraphs in the post. |
959 | 958 | # {remaining_paragraph_count} The amount of paragraphs in the post, sans the teaser. |
960 | 959 | # {post_title} The title of the post. |
|
989 | 988 | # A small copyright notice for the page footer (in HTML). |
990 | 989 | # (translatable) |
991 | 990 | CONTENT_FOOTER = ( |
992 | | - 'Contents © {date} {author}' |
| 991 | + "Contents © {date} {author}" |
993 | 992 | '- <a href="{repo}">GitHub</a> ' |
994 | | - '- {license} ' |
| 993 | + "- {license} " |
995 | 994 | '- <a href="{facebook}">Facebook</a> ' |
996 | 995 | '- <a href="{twitter}">Twitter</a> ' |
997 | 996 | '- <a href="{youtube}">YouTube</a> ' |
|
1148 | 1147 | # with the MarkdownExtension class and should not be added here. |
1149 | 1148 | # Defaults are markdown.extensions.(fenced_code|codehilite|extra) |
1150 | 1149 | # markdown.extensions.meta is required for Markdown metadata. |
1151 | | -MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', |
1152 | | - 'markdown.extensions.codehilite', |
1153 | | - 'markdown.extensions.extra', |
1154 | | - 'markdown.extensions.meta'] |
| 1150 | +MARKDOWN_EXTENSIONS = [ |
| 1151 | + "markdown.extensions.fenced_code", |
| 1152 | + "markdown.extensions.codehilite", |
| 1153 | + "markdown.extensions.extra", |
| 1154 | + "markdown.extensions.meta", |
| 1155 | +] |
1155 | 1156 |
|
1156 | 1157 | # Options to be passed to markdown extensions (See https://python-markdown.github.io/reference/) |
1157 | 1158 | # Default is {} (no config at all) |
|
1402 | 1403 | # (defaults to 1.) |
1403 | 1404 | # DEMOTE_HEADERS = 1 |
1404 | 1405 |
|
1405 | | -# If you don’t like slugified file names ([a-z0-9] and a literal dash), |
| 1406 | +# If you don't like slugified file names ([a-z0-9] and a literal dash), |
1406 | 1407 | # and would prefer to use all the characters your file system allows. |
1407 | 1408 | # USE WITH CARE! This is also not guaranteed to be perfect, and may |
1408 | 1409 | # sometimes crash Nikola, your web server, or eat your cat. |
|
0 commit comments