docs: classの後にattributableを配置するjsを追加

feat/v13/notes
yupix 10 months ago
parent 0531de4416
commit 50fb89cd72
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -0,0 +1,12 @@
const classes = document.getElementsByClassName('class')
const tables = document.getElementsByClassName('py-attribute-table')
for (const [i, _class] of Object.entries(classes)) {
const sig = _class.getElementsByTagName('dt').item(0);
const table = Object.entries(tables).filter((table) => table[1].getAttribute('data-move-to-id') == sig.id)[0];
sig.classList.add(`class-sig-${i}`);
table.id = `attributable-${i}`;
sig.parentNode.insertBefore(table[1], sig.nextSibling)
}

@ -8,12 +8,12 @@
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
sys.path.append(os.path.abspath('extensions'))
sys.path.insert(0, os.path.abspath(".."))
sys.path.append(os.path.abspath("extensions"))
project = 'mipac'
copyright = '2023, yupix'
author = 'yupix'
project = "mipac"
copyright = "2023, yupix"
author = "yupix"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
@ -24,29 +24,27 @@ extensions = [
"sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
"sphinx.ext.napoleon",
'attributetable'
"attributetable",
]
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
language = 'en'
language = "en"
gettext_compact = False
locale_dirs = ['locale/']
locale_dirs = ["locale/"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'furo'
html_theme = "furo"
html_static_path = ["_static"]
html_css_files = ["css/custom.css"]
html_js_files = ["js/custom.js"]
html_theme_options = {
"sidebar_hide_name": True
}
html_theme_options = {"sidebar_hide_name": True}
# -- Options for todo extension ----------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration

Loading…
Cancel
Save