Skip to content

Commit 0902e5d

Browse files
authored
Merge pull request #1 from python-ed/init-doc
sphinx設定
2 parents 10553fb + 6693d8f commit 0902e5d

File tree

6 files changed

+170
-0
lines changed

6 files changed

+170
-0
lines changed

Diff for: Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

Diff for: constraints.txt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
alabaster==0.7.12
2+
attrs==21.2.0
3+
Babel==2.9.1
4+
certifi==2021.5.30
5+
charset-normalizer==2.0.4
6+
docutils==0.17.1
7+
idna==3.2
8+
imagesize==1.2.0
9+
Jinja2==3.0.1
10+
markdown-it-py==1.1.0
11+
MarkupSafe==2.0.1
12+
mdit-py-plugins==0.2.8
13+
myst-parser==0.15.1
14+
packaging==21.0
15+
Pygments==2.10.0
16+
pyparsing==2.4.7
17+
pytz==2021.1
18+
PyYAML==5.4.1
19+
requests==2.26.0
20+
snowballstemmer==2.1.0
21+
Sphinx==4.1.2
22+
sphinxcontrib-applehelp==1.0.2
23+
sphinxcontrib-devhelp==1.0.2
24+
sphinxcontrib-htmlhelp==2.0.0
25+
sphinxcontrib-jsmath==1.0.1
26+
sphinxcontrib-qthelp==1.0.3
27+
sphinxcontrib-serializinghtml==1.1.5
28+
urllib3==1.26.6

Diff for: make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
if "%1" == "" goto help
14+
15+
%SPHINXBUILD% >NUL 2>NUL
16+
if errorlevel 9009 (
17+
echo.
18+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
19+
echo.installed, then set the SPHINXBUILD environment variable to point
20+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
21+
echo.may add the Sphinx directory to PATH.
22+
echo.
23+
echo.If you don't have Sphinx installed, grab it from
24+
echo.http://sphinx-doc.org/
25+
exit /b 1
26+
)
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

Diff for: requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx
2+
myst-parser

Diff for: source/conf.py

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
# import os
14+
# import sys
15+
# sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = "Pythonスターターガイド"
21+
copyright = "2021, Python ED"
22+
author = "Python ED"
23+
24+
25+
# -- General configuration ---------------------------------------------------
26+
27+
# Add any Sphinx extension module names here, as strings. They can be
28+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
29+
# ones.
30+
extensions = [
31+
"myst_parser",
32+
]
33+
34+
# Add any paths that contain templates here, relative to this directory.
35+
templates_path = ["_templates"]
36+
37+
# The language for content autogenerated by Sphinx. Refer to documentation
38+
# for a list of supported languages.
39+
#
40+
# This is also used if you do content translation via gettext catalogs.
41+
# Usually you set "language" from the command line for these cases.
42+
language = "ja"
43+
44+
# List of patterns, relative to source directory, that match files and
45+
# directories to ignore when looking for source files.
46+
# This pattern also affects html_static_path and html_extra_path.
47+
exclude_patterns = []
48+
49+
50+
# -- Options for HTML output -------------------------------------------------
51+
52+
# The theme to use for HTML and HTML Help pages. See the documentation for
53+
# a list of builtin themes.
54+
#
55+
html_theme = "alabaster"
56+
57+
# Add any paths that contain custom static files (such as style sheets) here,
58+
# relative to this directory. They are copied after the builtin static files,
59+
# so a file named "default.css" will overwrite the builtin "default.css".
60+
html_static_path = ["_static"]
61+
62+
source_suffix = {
63+
".rst": "restructuredtext",
64+
".md": "markdown",
65+
}

Diff for: source/index.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. Pythonスターターガイド documentation master file, created by
2+
sphinx-quickstart on Sat Aug 21 10:43:06 2021.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to Pythonスターターガイド's documentation!
7+
==================================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

0 commit comments

Comments
 (0)