Skip to content
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

🎨 add favicon to website #19

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
102 changes: 54 additions & 48 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autosectionlabel',
'sphinx.ext.autodoc',
'sphinx.ext.autodoc.typehints',
'sphinx.ext.napoleon',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.autosummary',
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.coverage',
'sphinx.ext.imgmath',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx_new_tab_link',
'myst_nb',
"sphinx.ext.autosectionlabel",
"sphinx.ext.autodoc",
"sphinx.ext.autodoc.typehints",
"sphinx.ext.napoleon",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.autosummary",
"sphinx.ext.todo",
"sphinx.ext.mathjax",
"sphinx.ext.coverage",
"sphinx.ext.imgmath",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
"sphinx_new_tab_link",
"myst_nb",
]


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

# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
Expand All @@ -35,25 +35,27 @@

## Include Python objects as they appear in source files
## Default: alphabetically ('alphabetical')
autodoc_member_order = 'bysource'
autodoc_member_order = "bysource"
## Default flags used by autodoc directives
autodoc_default_options = {'members': True,
'show-inheritance': True,
'undoc-members': True}
autodoc_default_options = {
"members": True,
"show-inheritance": True,
"undoc-members": True,
}
## Generate autodoc stubs with summaries from code
autosummary_generate = True

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"

# The master toctree document.
master_doc = 'index'
master_doc = "index"

# General information about the project.
project = 'acore'
project = "acore"
copyright = "2023, Multi-omics Network Analytics Group"
author = "Multi-omics Network Analytics Group"

Expand All @@ -71,17 +73,21 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = 'en'
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store',
"jupyter_execute",
"conf.py",]
exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"jupyter_execute",
"conf.py",
]

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
Expand Down Expand Up @@ -128,8 +134,8 @@
# https://github.com/executablebooks/MyST-NB/blob/master/docs/conf.py
# html_title = ""
html_theme = "sphinx_book_theme"
# html_logo = "_static/logo-wide.svg"
# html_favicon = "_static/logo-square.svg"
# html_logo = "logo/analytics_512px.png"
html_favicon = "logo/analytics_64px.png"
html_theme_options = {
"github_url": "https://github.com/Multiomics-Analytics-Group/acore/",
"repository_url": "https://github.com/Multiomics-Analytics-Group/acore/",
Expand All @@ -156,7 +162,7 @@
# -- Options for HTMLHelp output ---------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'acoredoc'
htmlhelp_basename = "acoredoc"


# -- Options for LaTeX output ------------------------------------------
Expand All @@ -165,15 +171,12 @@
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand All @@ -183,21 +186,21 @@
# (source start file, target name, title, author, documentclass
# [howto, manual, or own class]).
latex_documents = [
(master_doc, 'acore.tex',
'Analytics Core Documentation',
'Multi-omics Network Analytics Group', 'manual'),
(
master_doc,
"acore.tex",
"Analytics Core Documentation",
"Multi-omics Network Analytics Group",
"manual",
),
]


# -- Options for manual page output ------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'acore',
'Analytics Core Documentation',
[author], 1)
]
man_pages = [(master_doc, "acore", "Analytics Core Documentation", [author], 1)]


# -- Options for Texinfo output ----------------------------------------
Expand All @@ -206,12 +209,15 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'acore',
'Analytics Core Documentation',
author,
'acore',
'Oneline description of project.',
'Miscellaneous'),
(
master_doc,
"acore",
"Analytics Core Documentation",
author,
"acore",
"Oneline description of project.",
"Miscellaneous",
),
]


Expand Down
Binary file added docs/logo/analytics_512px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/logo/analytics_64px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.