Skip to content

Commit 967f748

Browse files
Merge pull request #22 from dylan-lang/documentation-fixes
Documentation fixes
2 parents b95a72e + b014935 commit 967f748

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

documentation/source/conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# serve to show the default.
1313

1414
import sys, os
15+
import sphinxcontrib.dylan.themes as dylan_themes
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the
@@ -25,7 +26,7 @@
2526

2627
# Add any Sphinx extension module names here, as strings. They can be extensions
2728
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ['dylandomain.dylandomain']
29+
extensions = ['sphinxcontrib.dylan.domain']
2930

3031
# Add any paths that contain templates here, relative to this directory.
3132
templates_path = ['_templates']
@@ -97,15 +98,15 @@
9798

9899
# The theme to use for HTML and HTML Help pages. See the documentation for
99100
# a list of builtin themes.
100-
html_theme = 'haiku'
101+
html_theme = dylan_themes.get_html_theme_default()
101102

102103
# Theme options are theme-specific and customize the look and feel of a theme
103104
# further. For a list of options available for each theme, see the
104105
# documentation.
105-
#html_theme_options = {}
106+
html_theme_options = dylan_themes.get_html_theme_options_default()
106107

107108
# Add any paths that contain custom themes here, relative to this directory.
108-
#html_theme_path = []
109+
html_theme_path = [dylan_themes.get_html_theme_path()]
109110

110111
# The name for this set of Sphinx documents. If None, it defaults to
111112
# "<project> v<release> documentation".

documentation/source/reference.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,12 @@ defined (there might be need for other combinations in the future).
160160
:superclasses: :class:`<leaf-frame>`, :class:`<variable-size-untranslated-frame>`
161161

162162
.. class:: <null-frame>
163+
163164
:description:
164165

165-
A concrete zero size leaf frame without a translation. This frame type
166-
can be used as one of the types of a variably-typed field to make the
167-
field optional. A field with a type <null-frame> is considered to be
166+
A concrete zero size leaf frame without a translation. This frame type
167+
can be used as one of the types of a variably-typed field to make the
168+
field optional. A field with a type <null-frame> is considered to be
168169
missing from the container frame. Conversion of a <null-frame> to string
169170
or vice versa is not supported (because it wouldn't make much sense).
170171

@@ -1063,7 +1064,7 @@ Predefined Leaf Frames
10631064
-------------
10641065

10651066
The :drm:`<integer>` type in Dylan is represented by only 30
1066-
bits, thus 32 bit frames which should be represented as a
1067+
bits, thus 32 bit frames which should be represented as a
10671068
:drm:`<number>` require a workaround. The workaround consists of using
10681069
:class:`<fixed-size-byte-vector-frame>` and converting to
10691070
:drm:`<double-float>` values.

documentation/source/usage.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ Inheritance: Variably Typed Container Frames
265265
A container frame can inherit from another container frame that
266266
already has some fields defined. The
267267
:class:`<variably-typed-container-frame>` class is used in container
268-
frames which have the type information encoded in the frame. The
268+
frames which have the type information encoded in the frame. The
269269
layering field (:class:`<layering-field>`) of such container
270270
frames must be parsed in order to determine the actual type.
271271

272272
Continuing with the ``<ethernet-frame>`` example, consider the `options of an
273-
IPv4 packet <https://en.wikipedia.org/wiki/IPv4#Options>`__. These share a
273+
IPv4 packet <https://en.wikipedia.org/wiki/IPv4#Options>`__. These share a
274274
common header (``copy-flag`` and ``option-type``), but a concrete option
275275
might have additional fields. The end of the options list is determined by
276276
the ``header-length`` field of an IPv4 packet and by the
@@ -325,10 +325,10 @@ Variably-typed
325325
--------------
326326

327327
Most fields have the same type in all frame instances, i.e. they are
328-
statically typed. In some cases however, the type of a field can
328+
statically typed. In some cases however, the type of a field can
329329
depend on the value of another field in the same :class:`<container-frame>`.
330330
Such fields can be defined using :class:`<variably-typed-field>` which does
331-
not have a static type, but an expression determining the field type for a
331+
not have a static type, but an expression determining the field type for a
332332
concrete frame instance.
333333

334334
This example uses the ``variably-typed field`` syntax. The

0 commit comments

Comments
 (0)