Skip to content

👍 sphinx_rtd_themeをやめてSphinxデフォルトテーマ (Alabaster) にする #37

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
49 changes: 31 additions & 18 deletions source/_static/a11y-gl.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,41 @@
body {
font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN","メイリオ", sans-serif;
div.body p, div.body dd, div.body li {
line-height: 1.8;
}

.header-logo {
width: 8.1875rem;
height: 2.75rem;
fill: #fff;
display: block;
margin: 0 auto 1rem;
div.body p + p {
margin-top: 1.5em;
}

.rst-content blockquote {
border-left: 4px solid #e3e3e3;
padding: 8px 24px;
margin-left: 0;
background-color: #efefef;
div.body dt {
font-weight: bold;
}

.rst-content blockquote p:last-child {
margin-bottom: 0;
div.sphinxsidebar ul {
line-height: 1.8;
}

@media screen and (max-width: 875px) {
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, div.sphinxsidebar h3 a {
color: #323232;
}
}

a {
transition-property: color;
transition-duration: .2s;
}
div.sphinxsidebar #searchbox form.search {
display: flex;

}
div.sphinxsidebar #searchbox input[type="text"],
div.sphinxsidebar #searchbox input[type="submit"] {
float: none;
}

.checklist > section {
margin: 16px;
border: 1px solid #ccc;
padding: 16px;
margin: 1rem;
border: 1px solid #e1dcdc;
border-radius: 0.25rem;
padding: 1rem;
}
6 changes: 6 additions & 0 deletions source/_static/freee-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 30 additions & 5 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,37 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_theme_options = {
"collapse_navigation": "false",
"logo": "freee-logo.svg",
"logo_name": True,
"page_width": "60rem",
"sidebar_width": "20rem",
"link": "#285ac8",
"link_hover": "#23418c",
"footer_text": "#6e6b6b",
"body_text": "#323232",
"sidebar_link": "#323232",
"sidebar_header": "#323232",
"sidebar_text": "#323232",
"narrow_sidebar_bg": "#f7f5f5",
"narrow_sidebar_fg": "#323232",
"narrow_sidebar_link": "#323232",
"gray_1": "#6e6b6b",
"gray_2": "#e9e7e7",
"gray_3": "#f7f5f5",
"pre_bg": "#f7f5f5",
"font_family":
"""
'-apple-system', BlinkMacSystemFont, 'Helvetica Neue', 'ヒラギノ角ゴ ProN', Hiragino Kaku Gothic ProN, Arial, 'メイリオ', Meiryo,
sans-serif
""",
"head_font_family":
"""
'-apple-system', BlinkMacSystemFont, 'Helvetica Neue', 'ヒラギノ角ゴ ProN', Hiragino Kaku Gothic ProN, Arial, 'メイリオ', Meiryo,
sans-serif
""",


}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down