Skip to content

Commit 41d1070

Browse files
committed
docs: overhaul and add readthedocs support.
Resolves #32, resolves #33.
1 parent f104e2c commit 41d1070

16 files changed

+321
-346
lines changed

Diff for: .readthedocs.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
formats: all
3+
build:
4+
os: ubuntu-20.04
5+
tools:
6+
python: '3.10'
7+
python:
8+
install:
9+
- requirements: docs/requirements.txt
10+
sphinx:
11+
builder: html
12+
configuration: docs/conf.py
13+
fail_on_warning: true

Diff for: CONTRIBUTING.md

-32
This file was deleted.

Diff for: INFORMATION.md

-28
This file was deleted.

Diff for: LIMITATIONS.md

-99
This file was deleted.

Diff for: TODO.md

-61
This file was deleted.

Diff for: docs/conf.py

+3-32
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,5 @@
1-
# Soapfish documentation build configuration file, created by
2-
# sphinx-quickstart on Thu Mar 6 16:06:14 2014.
3-
#
4-
# This file is execfile()d with the current directory set to its
5-
# containing dir.
6-
#
7-
# Note that not all possible configuration values are present in this
8-
# autogenerated file.
9-
#
10-
# All configuration values have a default; values that are commented out
11-
# serve to show the default.
12-
13-
# If extensions (or modules to document with autodoc) are in another directory,
14-
# add these directories to sys.path here. If the directory is relative to the
15-
# documentation root, use os.path.abspath to make it absolute, like shown here.
16-
# sys.path.insert(0, os.path.abspath('.'))
17-
18-
# -- General configuration ------------------------------------------------
19-
20-
# If your documentation needs a minimal Sphinx version, state it here.
21-
# needs_sphinx = '1.0'
22-
23-
# Add any Sphinx extension module names here, as strings. They can be
24-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
25-
# ones.
261
extensions = [
27-
'sphinx.ext.todo',
2+
'sphinx.ext.intersphinx',
283
'sphinx.ext.viewcode',
294
]
305

@@ -97,15 +72,11 @@
9772
# If true, keep warnings as "system message" paragraphs in the built documents.
9873
# keep_warnings = False
9974

100-
# If true, `todo` and `todoList` produce output, else they produce nothing.
101-
todo_include_todos = False
102-
103-
10475
# -- Options for HTML output ----------------------------------------------
10576

10677
# The theme to use for HTML and HTML Help pages. See the documentation for
10778
# a list of builtin themes.
108-
html_theme = 'alabaster'
79+
html_theme = 'sphinx_rtd_theme'
10980

11081
# Theme options are theme-specific and customize the look and feel of a theme
11182
# further. For a list of options available for each theme, see the
@@ -134,7 +105,7 @@
134105
# Add any paths that contain custom static files (such as style sheets) here,
135106
# relative to this directory. They are copied after the builtin static files,
136107
# so a file named "default.css" will overwrite the builtin "default.css".
137-
html_static_path = ['_static']
108+
html_static_path = []
138109

139110
# Add any extra paths that contain custom files (such as robots.txt or
140111
# .htaccess) here, relative to this directory. These files are copied

Diff for: docs/contributing.rst

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Contributing
2+
============
3+
4+
Contributions to the project can take many forms.
5+
6+
Document missing features
7+
-------------------------
8+
9+
I won't even pretend to understand the XML/XSD semantics completely so there is a good chance I missed something.
10+
11+
You can help by submitting examples of XML (with the according schema) which soapfish currently can not handle. Ideally
12+
you'd write a unit test which clearly demonstrates the failure.
13+
14+
Please try to minimize the sample as much as possible. We know this can be time-consuming but otherwise another
15+
developer has to do it, taking away precious development time.
16+
17+
Implement missing features
18+
--------------------------
19+
20+
Well, of course that's most helpful.
21+
22+
Some advice about the order in which new features should be implemented:
23+
24+
#. Ensure that you can express the XSD schema using the classes from ``soapfish.xsdspec``. This is the actual schema
25+
representation without any semantic sugar.
26+
#. Build your schema in soapfish.xsd elements which is the high-level API. Try to build the object graph as you need.
27+
#. Ensure that the assigned values in the object graph can be parsed and serialized to XML.
28+
#. Implement XSD generation using your object graph.
29+
#. Implement code-generation based on a pre-built XSD representing your use-case.
30+

Diff for: docs/index.rst

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Contents:
88

99
tutorial
1010
middlewares
11+
limitations
12+
specifications
13+
contributing
14+
todo
1115

1216
Indices and tables
1317
==================

0 commit comments

Comments
 (0)