Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Commit a487a23

Browse files
committedFeb 26, 2019
Sphinx 기본 설정 추가
1 parent b3a5797 commit a487a23

File tree

3 files changed

+220
-0
lines changed

3 files changed

+220
-0
lines changed
 

‎Makefile

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

‎conf.py

+199
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
# import os
16+
# import sys
17+
# sys.path.insert(0, os.path.abspath('.'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = 'KOMORANDocs'
23+
copyright = '2019, shineware'
24+
author = 'shineware'
25+
26+
# The short X.Y version
27+
version = ''
28+
# The full version, including alpha/beta/rc tags
29+
release = ''
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
extensions = [
42+
'sphinx.ext.todo',
43+
'sphinx.ext.githubpages',
44+
]
45+
46+
# Add any paths that contain templates here, relative to this directory.
47+
templates_path = ['_templates']
48+
49+
# The suffix(es) of source filenames.
50+
# You can specify multiple suffix as a list of string:
51+
#
52+
# source_suffix = ['.rst', '.md']
53+
source_suffix = '.rst'
54+
55+
# The master toctree document.
56+
master_doc = 'index'
57+
58+
# The language for content autogenerated by Sphinx. Refer to documentation
59+
# for a list of supported languages.
60+
#
61+
# This is also used if you do content translation via gettext catalogs.
62+
# Usually you set "language" from the command line for these cases.
63+
language = 'ko'
64+
65+
# List of patterns, relative to source directory, that match files and
66+
# directories to ignore when looking for source files.
67+
# This pattern also affects html_static_path and html_extra_path.
68+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
69+
70+
# The name of the Pygments (syntax highlighting) style to use.
71+
pygments_style = None
72+
73+
74+
# -- Options for HTML output -------------------------------------------------
75+
76+
# The theme to use for HTML and HTML Help pages. See the documentation for
77+
# a list of builtin themes.
78+
#
79+
html_theme = 'sphinx_rtd_theme'
80+
81+
# Theme options are theme-specific and customize the look and feel of a theme
82+
# further. For a list of options available for each theme, see the
83+
# documentation.
84+
#
85+
html_theme_options = {
86+
# 'canonical_url': '',
87+
# 'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard
88+
'logo_only': False,
89+
'display_version': True,
90+
'prev_next_buttons_location': 'bottom',
91+
'style_external_links': False,
92+
# 'vcs_pageview_mode': '',
93+
# 'style_nav_header_background': 'white',
94+
95+
# Toc options
96+
'collapse_navigation': True,
97+
'sticky_navigation': True,
98+
'navigation_depth': 4,
99+
'includehidden': True,
100+
'titles_only': False
101+
}
102+
103+
# Add any paths that contain custom static files (such as style sheets) here,
104+
# relative to this directory. They are copied after the builtin static files,
105+
# so a file named "default.css" will overwrite the builtin "default.css".
106+
html_static_path = ['_static']
107+
108+
# Custom sidebar templates, must be a dictionary that maps document names
109+
# to template names.
110+
#
111+
# The default sidebars (for documents that don't match any pattern) are
112+
# defined by theme itself. Builtin themes are using these templates by
113+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
114+
# 'searchbox.html']``.
115+
#
116+
# html_sidebars = {}
117+
118+
119+
# -- Options for HTMLHelp output ---------------------------------------------
120+
121+
# Output file base name for HTML help builder.
122+
htmlhelp_basename = 'KOMORANDocs'
123+
124+
125+
# -- Options for LaTeX output ------------------------------------------------
126+
127+
latex_elements = {
128+
# The paper size ('letterpaper' or 'a4paper').
129+
#
130+
# 'papersize': 'letterpaper',
131+
132+
# The font size ('10pt', '11pt' or '12pt').
133+
#
134+
# 'pointsize': '10pt',
135+
136+
# Additional stuff for the LaTeX preamble.
137+
#
138+
# 'preamble': '',
139+
140+
# Latex figure (float) alignment
141+
#
142+
# 'figure_align': 'htbp',
143+
}
144+
145+
# Grouping the document tree into LaTeX files. List of tuples
146+
# (source start file, target name, title,
147+
# author, documentclass [howto, manual, or own class]).
148+
latex_documents = [
149+
(master_doc, 'KOMORANDocs.tex', 'KOMORAN Documents',
150+
'shineware', 'manual'),
151+
]
152+
153+
154+
# -- Options for manual page output ------------------------------------------
155+
156+
# One entry per manual page. List of tuples
157+
# (source start file, name, description, authors, manual section).
158+
man_pages = [
159+
(master_doc, 'komorandocs', 'KOMORAN Documents',
160+
[author], 1)
161+
]
162+
163+
164+
# -- Options for Texinfo output ----------------------------------------------
165+
166+
# Grouping the document tree into Texinfo files. List of tuples
167+
# (source start file, target name, title, author,
168+
# dir menu entry, description, category)
169+
texinfo_documents = [
170+
(master_doc, 'KOMORANDocs', 'KOMORAN Documents',
171+
author, 'KOMORANDocs', 'One line description of project.',
172+
'Miscellaneous'),
173+
]
174+
175+
176+
# -- Options for Epub output -------------------------------------------------
177+
178+
# Bibliographic Dublin Core info.
179+
epub_title = project
180+
181+
# The unique identifier of the text. This can be a ISBN number
182+
# or the project homepage.
183+
#
184+
# epub_identifier = ''
185+
186+
# A unique identification for the text.
187+
#
188+
# epub_uid = ''
189+
190+
# A list of files that should not be packed into the epub file.
191+
epub_exclude_files = ['search.html']
192+
193+
194+
# -- Extension configuration -------------------------------------------------
195+
196+
# -- Options for todo extension ----------------------------------------------
197+
198+
# If true, `todo` and `todoList` produce output, else they produce nothing.
199+
todo_include_todos = True

‎requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx==1.8.4
2+
sphinx-rtd-theme==0.4.2

0 commit comments

Comments
 (0)
This repository has been archived.