<commit_before>
import sys, os

sys.path.insert(0, os.path.abspath(os.path.join('..', 'exts')))

extensions = [
    # general
    'youtube',
    'newsfeed',
    'extlinks_plus',
    # sphinx extensions
    'sphinx.ext.githubpages',
]
extlinks_plus = {
    'task': ('http://developer.blender.org/T%s', '%s: (%s)', 'T%s'),
    'diff': ('http://developer.blender.org/D%s', '%s: (%s)', 'D%s'),
    # Show 9 chars of revision (typically there is a B prefix, so 8 chars or SHA1).
    'rev': ('http://developer.blender.org/r%s', '%s: (%s)', 'r%.9s'),
}


# The suffix of source filenames.
source_suffix = '.rst'

exclude_patterns = ['template.rst']
master_doc = 'index'

# General information about the project.
project = 'This Week in Blender Development'
copyright = 'Creative Commons'

# include at end of every file
rst_epilog = """
----

.. |vertical_separator| unicode:: U+02758

`rss feed <rss.xml>`__
|vertical_separator|
:doc:`all weeks <feed>`
|vertical_separator|
`source code <https://github.com/ThisWeekInBlenderDev/source>`__
|vertical_separator|
`cc-by-sa 4.0 <https://creativecommons.org/licenses/by-sa/4.0>`__
"""

# without this it calls it 'documentation', which it's not
html_title = 'This Week in Blender Development'
html_short_title = 'This Week in Blender Dev'

# Socket logo from: https://www.blender.org/about/logo
html_logo = "../theme/blender-logo.svg"
html_favicon = "../theme/favicon.ico"
html_static_path = ["../theme"]

# visual noise for my purpose
html_show_copyright = False
html_show_sphinx = False
html_show_sourcelink = False


def setup(app):
    app.add_stylesheet("theme_overrides.css")

'''
try:
    import sphinx_rtd_theme
except ImportError:
    sphinx_rtd_theme = None

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
if sphinx_rtd_theme:
    html_theme = 'sphinx_rtd_theme'
else:
    html_theme = 'haiku'

if sphinx_rtd_theme:
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
'''

html_theme = 'alabaster'
html_theme_options = {
    "show_powered_by": False,
    "analytics_id": "UA-105840115-1"
}
import alabaster
print(alabaster.__file__)
html_theme_path = [alabaster.get_path()]
<commit_msg>Do not copy source files in output<commit_after>
import sys, os

sys.path.insert(0, os.path.abspath(os.path.join('..', 'exts')))

extensions = [
    # general
    'youtube',
    'newsfeed',
    'extlinks_plus',
    # sphinx extensions
    'sphinx.ext.githubpages',
]
extlinks_plus = {
    'task': ('http://developer.blender.org/T%s', '%s: (%s)', 'T%s'),
    'diff': ('http://developer.blender.org/D%s', '%s: (%s)', 'D%s'),
    # Show 9 chars of revision (typically there is a B prefix, so 8 chars or SHA1).
    'rev': ('http://developer.blender.org/r%s', '%s: (%s)', 'r%.9s'),
}


# The suffix of source filenames.
source_suffix = '.rst'

exclude_patterns = ['template.rst']
master_doc = 'index'

# General information about the project.
project = 'This Week in Blender Development'
copyright = 'Creative Commons'

# include at end of every file
rst_epilog = """
----

.. |vertical_separator| unicode:: U+02758

`rss feed <rss.xml>`__
|vertical_separator|
:doc:`all weeks <feed>`
|vertical_separator|
`source code <https://github.com/ThisWeekInBlenderDev/source>`__
|vertical_separator|
`cc-by-sa 4.0 <https://creativecommons.org/licenses/by-sa/4.0>`__
"""

# without this it calls it 'documentation', which it's not
html_title = 'This Week in Blender Development'
html_short_title = 'This Week in Blender Dev'

# Socket logo from: https://www.blender.org/about/logo
html_logo = "../theme/blender-logo.svg"
html_favicon = "../theme/favicon.ico"
html_static_path = ["../theme"]

# visual noise for my purpose
html_show_copyright = False
html_show_sphinx = False
html_copy_source = False
html_show_sourcelink = False


def setup(app):
    app.add_stylesheet("theme_overrides.css")

'''
try:
    import sphinx_rtd_theme
except ImportError:
    sphinx_rtd_theme = None

# The theme to use for HTML and HTML Help pages.  See the documentation for
# a list of builtin themes.
if sphinx_rtd_theme:
    html_theme = 'sphinx_rtd_theme'
else:
    html_theme = 'haiku'

if sphinx_rtd_theme:
    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
'''

html_theme = 'alabaster'
html_theme_options = {
    "show_powered_by": False,
    "analytics_id": "UA-105840115-1"
}
import alabaster
print(alabaster.__file__)
html_theme_path = [alabaster.get_path()]

{'fraction_non_alphanumeric': 0.14847259658580414, 'fraction_numerical': 0.01078167115902965, 'mean_word_length': 4.352163461538462, 'pattern_counts': {'":': 4, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1822879', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1592, 'n_words': 390}