Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit e0003e7

Browse files
author
PokestarFan
committed
Add in code, and docs
1 parent 42af5e4 commit e0003e7

13 files changed

+536
-150
lines changed

Diff for: .gitignore

-9
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,9 @@ ENV/
100100
# mypy
101101
.mypy_cache/
102102

103-
#sphinx
104-
docs\
105-
.pypirc
106-
Makefile
107-
make.bat
108-
source*
109103

110104
#my custom file
111105
setupcommands.bat
112106

113-
#.anything
114-
.*
115-
116107
#logs
117108
logs*

Diff for: docs/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.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SPHINXPROJ = markdowntable
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: docs/make.bat

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
set SPHINXPROJ=markdowntable
13+
14+
if "%1" == "" goto help
15+
16+
%SPHINXBUILD% >NUL 2>NUL
17+
if errorlevel 9009 (
18+
echo.
19+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
20+
echo.installed, then set the SPHINXBUILD environment variable to point
21+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
22+
echo.may add the Sphinx directory to PATH.
23+
echo.
24+
echo.If you don't have Sphinx installed, grab it from
25+
echo.http://sphinx-doc.org/
26+
exit /b 1
27+
)
28+
29+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
30+
goto end
31+
32+
:help
33+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
34+
35+
:end
36+
popd

Diff for: docs/source/conf.py

+192
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
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+
18+
os.chdir('..')
19+
sys.path.insert(0, os.path.abspath('..'))
20+
21+
# -- Project information -----------------------------------------------------
22+
23+
project = 'markdowntable'
24+
copyright = '2018, PokestarFan'
25+
author = 'PokestarFan'
26+
27+
# The short X.Y version
28+
version = '5.1'
29+
# The full version, including alpha/beta/rc tags
30+
release = '5.1.1'
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.autodoc',
43+
'sphinx.ext.doctest',
44+
'sphinx.ext.intersphinx',
45+
'sphinx.ext.todo',
46+
'sphinx.ext.coverage',
47+
'sphinx.ext.mathjax',
48+
'sphinx.ext.ifconfig',
49+
'sphinx.ext.viewcode',
50+
'sphinx.ext.githubpages',
51+
]
52+
53+
# Add any paths that contain templates here, relative to this directory.
54+
templates_path = ['_templates']
55+
56+
# The suffix(es) of source filenames.
57+
# You can specify multiple suffix as a list of string:
58+
#
59+
# source_suffix = ['.rst', '.md']
60+
source_suffix = '.rst'
61+
62+
# The master toctree document.
63+
master_doc = 'index'
64+
65+
# The language for content autogenerated by Sphinx. Refer to documentation
66+
# for a list of supported languages.
67+
#
68+
# This is also used if you do content translation via gettext catalogs.
69+
# Usually you set "language" from the command line for these cases.
70+
language = None
71+
72+
# List of patterns, relative to source directory, that match files and
73+
# directories to ignore when looking for source files.
74+
# This pattern also affects html_static_path and html_extra_path .
75+
exclude_patterns = []
76+
77+
# The name of the Pygments (syntax highlighting) style to use.
78+
pygments_style = 'sphinx'
79+
80+
# -- Options for HTML output -------------------------------------------------
81+
82+
# The theme to use for HTML and HTML Help pages. See the documentation for
83+
# a list of builtin themes.
84+
#
85+
html_theme = 'alabaster'
86+
87+
# Theme options are theme-specific and customize the look and feel of a theme
88+
# further. For a list of options available for each theme, see the
89+
# documentation.
90+
#
91+
# html_theme_options = {}
92+
93+
# Add any paths that contain custom static files (such as style sheets) here,
94+
# relative to this directory. They are copied after the builtin static files,
95+
# so a file named "default.css" will overwrite the builtin "default.css".
96+
html_static_path = ['_static']
97+
98+
# Custom sidebar templates, must be a dictionary that maps document names
99+
# to template names.
100+
#
101+
# The default sidebars (for documents that don't match any pattern) are
102+
# defined by theme itself. Builtin themes are using these templates by
103+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
104+
# 'searchbox.html']``.
105+
#
106+
# html_sidebars = {}
107+
108+
109+
# -- Options for HTMLHelp output ---------------------------------------------
110+
111+
# Output file base name for HTML help builder.
112+
htmlhelp_basename = 'markdowntabledoc'
113+
114+
# -- Options for LaTeX output ------------------------------------------------
115+
116+
latex_elements = {
117+
# The paper size ('letterpaper' or 'a4paper').
118+
#
119+
# 'papersize': 'letterpaper',
120+
121+
# The font size ('10pt', '11pt' or '12pt').
122+
#
123+
# 'pointsize': '10pt',
124+
125+
# Additional stuff for the LaTeX preamble.
126+
#
127+
# 'preamble': '',
128+
129+
# Latex figure (float) alignment
130+
#
131+
# 'figure_align': 'htbp',
132+
}
133+
134+
# Grouping the document tree into LaTeX files. List of tuples
135+
# (source start file, target name, title,
136+
# author, documentclass [howto, manual, or own class]).
137+
latex_documents = [
138+
(master_doc, 'markdowntable.tex', 'markdowntable Documentation',
139+
'PokestarFan', 'manual'),
140+
]
141+
142+
# -- Options for manual page output ------------------------------------------
143+
144+
# One entry per manual page. List of tuples
145+
# (source start file, name, description, authors, manual section).
146+
man_pages = [
147+
(master_doc, 'markdowntable', 'markdowntable Documentation',
148+
[author], 1)
149+
]
150+
151+
# -- Options for Texinfo output ----------------------------------------------
152+
153+
# Grouping the document tree into Texinfo files. List of tuples
154+
# (source start file, target name, title, author,
155+
# dir menu entry, description, category)
156+
texinfo_documents = [
157+
(master_doc, 'markdowntable', 'markdowntable Documentation',
158+
author, 'markdowntable', 'One line description of project.',
159+
'Miscellaneous'),
160+
]
161+
162+
# -- Options for Epub output -------------------------------------------------
163+
164+
# Bibliographic Dublin Core info.
165+
epub_title = project
166+
epub_author = author
167+
epub_publisher = author
168+
epub_copyright = copyright
169+
170+
# The unique identifier of the text. This can be a ISBN number
171+
# or the project homepage.
172+
#
173+
# epub_identifier = ''
174+
175+
# A unique identification for the text.
176+
#
177+
# epub_uid = ''
178+
179+
# A list of files that should not be packed into the epub file.
180+
epub_exclude_files = ['search.html']
181+
182+
# -- Extension configuration -------------------------------------------------
183+
184+
# -- Options for intersphinx extension ---------------------------------------
185+
186+
# Example configuration for intersphinx: refer to the Python standard library.
187+
intersphinx_mapping = {'https://docs.python.org/': None}
188+
189+
# -- Options for todo extension ----------------------------------------------
190+
191+
# If true, `todo` and `todoList` produce output, else they produce nothing.
192+
todo_include_todos = True

Diff for: docs/source/index.rst

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. markdowntable documentation master file, created by
2+
sphinx-quickstart on Sun Jun 10 10:17:12 2018.
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 markdowntable's documentation!
7+
=========================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
modules.rst
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

Diff for: docs/source/markdowntable.rst

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
markdowntable package
2+
=====================
3+
4+
Submodules
5+
----------
6+
7+
markdowntable.exceptions module
8+
-------------------------------
9+
10+
.. automodule:: markdowntable.exceptions
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
markdowntable.inputs module
16+
---------------------------
17+
18+
.. automodule:: markdowntable.inputs
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
markdowntable.messages module
24+
-----------------------------
25+
26+
.. automodule:: markdowntable.messages
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
32+
Module contents
33+
---------------
34+
35+
.. automodule:: markdowntable
36+
:members:
37+
:undoc-members:
38+
:show-inheritance:

Diff for: docs/source/modules.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
markdowntable
2+
=============
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
markdowntable

0 commit comments

Comments
 (0)