Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Obarrie authored Dec 8, 2023
1 parent a357af1 commit 7e69b6c
Showing 1 changed file with 101 additions and 101 deletions.
202 changes: 101 additions & 101 deletions conf.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# -- Project information -----------------------------------------------------
# # -- Project information -----------------------------------------------------

project = 'Site Title'
copyright = '2023, Your name'
author = 'Your Name'
# project = 'Site Title'
# copyright = '2023, Your name'
# author = 'Your Name'



# ----------------------------------------------------------------------------
# Below here does not need to be edited for the lab
# ----------------------------------------------------------------------------
# # ----------------------------------------------------------------------------
# # Below here does not need to be edited for the lab
# # ----------------------------------------------------------------------------

# -- General configuration ---------------------------------------------------
# # -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
# # Add any Sphinx extension module names here, as strings. They can be
# # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# # ones.
import os
import sys

Expand All @@ -24,94 +24,94 @@

todo_include_todos = False

# "sphinxext.rediraffe",

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', "*import_posts*",
"**/pandoc_ipynb/inputs/*", ".nox/*", "README.md",
'_data','_pages','_people','_projects']


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'pydata_sphinx_theme'

import yaml
with open ('info.yml','r') as f:
html_context = yaml.safe_load(f)


html_theme_options = {
"github_url": "https://github.com/username/",
"twitter_url": "https://twitter.com/username",
"search_bar_text": "Search this site...",
# "navbar_end": ["search-field.html"],
}

# html_favicon = "_static/favicon.ico"
# change this to change the site title
html_title = project

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# html_js_files = [
# 'slides.js',
# # "sphinxext.rediraffe",

# # Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']

# # List of patterns, relative to source directory, that match files and
# # directories to ignore when looking for source files.
# # This pattern also affects html_static_path and html_extra_path.
# exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', "*import_posts*",
# "**/pandoc_ipynb/inputs/*", ".nox/*", "README.md",
# '_data','_pages','_people','_projects']


# # -- Options for HTML output -------------------------------------------------

# # The theme to use for HTML and HTML Help pages. See the documentation for
# # a list of builtin themes.
# #
# html_theme = 'pydata_sphinx_theme'

# import yaml
# with open ('info.yml','r') as f:
# html_context = yaml.safe_load(f)


# html_theme_options = {
# "github_url": "https://github.com/username/",
# "twitter_url": "https://twitter.com/username",
# "search_bar_text": "Search this site...",
# # "navbar_end": ["search-field.html"],
# }

# # html_favicon = "_static/favicon.ico"
# # change this to change the site title
# html_title = project

# # Add any paths that contain custom static files (such as style sheets) here,
# # relative to this directory. They are copied after the builtin static files,
# # so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']

# # html_js_files = [
# # 'slides.js',
# # ]
# # html_extra_path = ["feed.xml"]
# # map pages to which sidebar they should have
# # "page_file_name": ["list.html", "of.html", "sidebar.html", "files.html"]
# html_sidebars = {
# "index": ["hello.html"],
# "about": ["hello.html"],
# "resume": ["hello.html"],
# "news": ["hello.html", 'ablog/archives.html'],
# "news/**": ['ablog/postcard.html', 'ablog/recentposts.html', 'ablog/archives.html'],
# "blog": ['tagcloud.html', 'archives.html'],
# "blog/**": ['postcard.html', 'recentposts.html', 'archives.html'],
# "pechakucha":[]
# }


# blog_title = "Blog "
# blog_path = "news"
# blog_feed_length = 5
# fontawesome_included = True
# blog_post_pattern = "news/*"
# post_redirect_refresh = 1
# post_auto_image = 1
# post_auto_excerpt = 2

# # Panels config
# panels_add_bootstrap_css = False

# # MyST config
# myst_enable_extensions = [
# # "amsmath",
# "colon_fence",
# "deflist",
# "dollarmath",
# "fieldlist",
# "html_admonition",
# "html_image",
# # "attrs_block",
# "replacements",
# "smartquotes",
# "strikethrough",
# "substitution",
# # "tasklist",
# ]
# html_extra_path = ["feed.xml"]
# map pages to which sidebar they should have
# "page_file_name": ["list.html", "of.html", "sidebar.html", "files.html"]
html_sidebars = {
"index": ["hello.html"],
"about": ["hello.html"],
"resume": ["hello.html"],
"news": ["hello.html", 'ablog/archives.html'],
"news/**": ['ablog/postcard.html', 'ablog/recentposts.html', 'ablog/archives.html'],
"blog": ['tagcloud.html', 'archives.html'],
"blog/**": ['postcard.html', 'recentposts.html', 'archives.html'],
"pechakucha":[]
}


blog_title = "Blog "
blog_path = "news"
blog_feed_length = 5
fontawesome_included = True
blog_post_pattern = "news/*"
post_redirect_refresh = 1
post_auto_image = 1
post_auto_excerpt = 2

# Panels config
panels_add_bootstrap_css = False

# MyST config
myst_enable_extensions = [
# "amsmath",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
# "attrs_block",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
# "tasklist",
]

def setup(app):
app.add_css_file("custom.css")
# app.add_js_file("custom.js")

# def setup(app):
# app.add_css_file("custom.css")
# # app.add_js_file("custom.js")

0 comments on commit 7e69b6c

Please sign in to comment.