Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comprehensive specification documentation #30

Merged
merged 73 commits into from
Sep 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b224224
Add initial edits to schema from ISTI and docs/README.md as placeholder
Jul 10, 2020
2c90a0f
Add initial edits to schema from ISTI and docs/README.md as placeholder
Jul 10, 2020
6b78a89
Update fdsn-station.xsd
Jul 10, 2020
7b22449
MTH Test
mikehagerty Jul 10, 2020
7b8bf55
Update fdsn-station.xsd
mikehagerty Jul 10, 2020
b98a9fd
Update fdsn-station.xsd to the ISTI modified-1.1.xsd from branch rele…
Jul 10, 2020
8ef854b
Update fdsn-station.xsd
Jul 10, 2020
8b7bf62
Update fdsn-station.xsd
Jul 10, 2020
66209c8
Update fdsn-station.xsd
Jul 11, 2020
b4261f1
Update fdsn-station.xsd
Jul 11, 2020
7bf61f8
Update fdsn-station.xsd
Jul 13, 2020
cd6e1ce
Update fdsn-station.xsd
Jul 13, 2020
c95b05e
Update fdsn-station.xsd
Jul 13, 2020
50db15d
Update fdsn-station.xsd
Jul 13, 2020
8cea402
check single quotes on DOI
Jul 13, 2020
1d52148
Update fdsn-station.xsd
Jul 14, 2020
0d11b22
fix code= examples
Jul 21, 2020
edec5fa
Added level/element choice tags to docs
Jul 22, 2020
55fa139
making gdoc edits
Jul 22, 2020
461645e
doc fixes
Jul 22, 2020
b2a9d85
making Marys changes from gdoc
Jul 23, 2020
3ac0b7a
fixing polezero elementchoice
Jul 23, 2020
038d6d2
bug fix
Jul 23, 2020
b07f1b1
fix poles zeros docs
Jul 23, 2020
4615ecb
fix level choices
Jul 23, 2020
e5c0a46
fix pzfunctiontype doc
Jul 23, 2020
5785ec0
tweak pzfunctiontype
Jul 23, 2020
e438a22
fix
Jul 23, 2020
838f54c
tiny
Jul 24, 2020
ad3678d
fix samplerategroup
Jul 27, 2020
0a9cd1c
fix bug
Jul 27, 2020
191c3c4
test join docs tags
Jul 27, 2020
07118bc
tweak samplerateratio
Jul 27, 2020
51c4c7a
typo
Jul 27, 2020
caddc88
Added files from sphinx project stationxml-doc branch=release-1.1.0 into
Jul 30, 2020
7d2f3a9
Made fixes from 2020/07/30 phone call with Chad + Constanza
Jul 30, 2020
116c73a
tweaks
Jul 30, 2020
30f1b01
more fixes from phone call
Jul 30, 2020
80ad806
SI units: METERS --> m
Jul 30, 2020
78fc9fb
fix calibrationunits
Jul 30, 2020
87821eb
SI italics
Jul 30, 2020
ccc8d9a
missing latex style file
Jul 30, 2020
4944ba2
Testing requirements, cleaned up sphinx-build warnings
Aug 4, 2020
318444b
Remove unused stuff
Aug 7, 2020
5d598ea
Update scan_xsd_to_rst.py to read local schema, remove cruft
Aug 7, 2020
68d1cd7
Add and move static images
Aug 7, 2020
0d5ff65
Merge branch 'docs' of https://github.com/iris-edu/StationXML into docs
Aug 7, 2020
5fa5f45
Remove old logo
Aug 7, 2020
6dc69ad
Cleanup
Aug 7, 2020
087d783
Fixed change section, add documentation version section
Aug 7, 2020
043a60e
Remove breadcrumbs, fix project name
Aug 7, 2020
be9b8a6
Remove unused indices
Aug 7, 2020
f572932
Tweak styling, add FDSN home page link
Aug 7, 2020
2bec0e8
Replace PDF download with Specification link, Remove download manglin…
Aug 7, 2020
4963aa0
Add Overview link in TOC
Aug 7, 2020
5238420
Remove lingering Download PDF
Aug 7, 2020
77fe09f
Rename variable to doc_version for clarity
Aug 7, 2020
3c7df2e
Rename custom.js to sidebar_context for clarity, update styling
Aug 7, 2020
5ab70f3
* Schema to read and output directory are now command line options
Aug 22, 2020
fd6646a
Add Makefile. Rename XSD->RST converter. Update README.md
Aug 22, 2020
f376ac7
Update schema documentation with edits from R. Casey in PR #1
Aug 22, 2020
7784bb5
Update documentation version in list
Aug 22, 2020
721341a
Update documentation extracted from schema
Aug 22, 2020
a47ca55
Add acknowledgements, document version, minor re-org, and fixes
Sep 3, 2020
1038459
Fix typos
Sep 3, 2020
bd44b36
Add IRIS StationXML validator to tools list
Sep 3, 2020
ca92aa7
XML is not "ascii", just say text
Sep 3, 2020
203f4c1
Added short description of keywords
Sep 11, 2020
1d54926
Merge branch 'docs' of https://github.com/iris-edu/StationXML into docs
Sep 11, 2020
2ff225e
added appendix section for schema keywords, fixed z-transform freq re…
Sep 11, 2020
e25594f
.
Sep 11, 2020
010ab6b
Update/rename embedded documentation docs, update appendencies, small…
Sep 19, 2020
081139c
Edits to embedded keywords in XSD, and inclusion of SEED description …
Sep 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

Binary file added docs/Qx80_FIR_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# stationxml-doc
StationXML Documentation

## To generate the html/pdf documents

>make html

and/or

>make latexpdf

or running sphinx-build manually

>sphinx-build -b html . _build/html

This will update the html files in _build/html

## To update ReStructuredText documentation generated from the StationXML schema file

>python3 convert_xsd_to_rst.py ../fdsn-station.xsd .

This will re-generate the following files from the XSD schema document:
- level-network.rst
- level-station.rst
- level-channel.rst
- level-response.rst

## To modify the look and feel of the auto-generated level docs

The following css divs are described in:
_static/css/custom.css

- hatnote - describes the gray box of each element
- crumb - the navigation trails
- description - contains the element description
- type - contains the element type
- example - contains the element example

Example rst

<BeginEffectiveTime>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. container:: hatnote hatnote-gray

.. container:: crumb

crumb:Network-->Comment-->BeginEffectiveTime

.. container:: type

type::blue:`dateTime`

.. container:: example

**Example**: <BeginEffectiveTime>2008-09-15T00:00:00</BeginEffectiveTime>

Hint: If you change the css without changing any .rst files, you must first do:

>make clean // deletes all the files in _build/

before doing the sphinx-build or it won't take.
Binary file added docs/_static/FDSN-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
250 changes: 250 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@

/* FDSN-style font baseline */
body {
font-family: "Quattrocento Sans", Avenir, Helvetica, Arial, sans-serif;
}

/* Keep the logo from dominating the upper search pane */
.logo {
max-height: 80px;
}

/* Set colors for search and navigation sidebar */
.wy-side-nav-search,
.wy-side-nav-search > a,
.wy-side-nav-search > div.version,
.wy-nav-top {
color: black;
background: white;
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
color: lightgray;
font-weight: bolder;
}

.wy-menu-vertical a,
.wy-menu-vertical li.current > a {
color: white;
}

.wy-menu-vertical li.toctree-l2 a,
.wy-menu-vertical li.toctree-l3 a,
.wy-menu-vertical li.toctree-l4 a,
.wy-menu-vertical li.toctree-l5 a,
.wy-menu-vertical li.toctree-l6 a {
color: #404040;
}

.wy-nav-side {
color: black;
background: rgb(51,123,184); /* Darker blue */
}

.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l1.current {
background: rgb(116,182,236); /* Medium blue */
border-bottom: rgb(116,182,236);
border-top: rgb(116,182,236);
}

.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l2.current,
.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a {
background: rgb(207,226,242); /* Light blue */
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3 a:hover {
background: #d6d6d6;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3.current > a {
background: white;
}

/* Stuff ISTI set */
h3, h4, h5, h6 {
display: block;
width: 100%;
background-color: #e8e8e8 ;
margin-bottom: 0 ;
margin-top: 0.9em ;
padding-left: 0.5em ;
padding-right: 0.5em ;
padding-top: 0.2em ;
padding-bottom: 0.2em ;
}
h2 {
display: block;
width: 100%;
/*background-color: #D6D6D6 ;*/
background-color: #e8e8e8 ;
margin-bottom: 0 ;
margin-top: 0.9em ;
padding-left: 0.5em ;
padding-right: 0.5em ;
padding-top: 0.2em ;
padding-bottom: 0.2em ;
}
h1 {
display: block;
width: 100%;
/*background-color: #2980b9 ;*/
background-color: #0088cc ;
margin-bottom: 0 ;
margin-top: 0.9em ;
padding-left: 0.5em ;
padding-right: 0.5em ;
padding-top: 0.2em ;
padding-bottom: 0.2em ;
color:white;
}

.MathJax_Display{
}

div.hatnote.hatnote-gray.docutils.container > div.description.docutils.container > blockquote > div > div > div {
font-size: 117% !important
}

.box
{
border-color: #c8c8c8 ;
border-style: solid ;
border-width: 1px ;
}

.crumb {
height: 0;
position: relative;
left: 325px;
top: -25px;
color:#585858;
}

div.crumb > p {
font-size:small !important;
}


.breadcrumb
{
font-color:white;
font-size:medium;
}

.hatnote_table
{
border-color: #c8c8c8 ;
border-style: solid ;
border-width: 1px ;
margin-left: 0 ;
margin-right: 0 ;
padding-left: 0px;
padding-right: 0px ;
padding-bottom: 0px ;
padding-top: 0px ;
margin-bottom: 0px ;
margin-top: 0px ;
}

.hatnote
{
border-color: #e8e8e8 ;
border-width: 1px ;
border-style: solid ;
/*
border-color: #c8c8c8 ;
*/
font-size: x-small ;
/*font-style: italic ;*/
margin-left: auto ;
margin-right: auto ;
padding-left: 2em;
padding-right: 0px ;
padding-bottom: 0px ;
padding-top: 0px ;
margin-bottom: 0px ;
margin-top: 0px ;
}
.hatnote_table-gray { background-color: #e8e8e8 ; color: #000000 ; }
.hatnote-gray { background-color: #e8e8e8 ; color: #000000 ; }
.hatnote-yellow { background-color: #ffffe8 ; color: #000000 ; }
.hatnote-red { background-color: #ffe8e8 ; color: #000000 ; }
.hatnote-icon { height: 16px ; width: 16px ; }

.rst-content .myownstyle .admonition-title {
background: #b99976
}

.rst-content .myownstyle {
background: #e5d3b3
}

.white {
color:white;
font-style:italic;
font-size: medium;
}

.red {
color:red;
}
.blue {
color:blue;
}
.italic {
font-style:italic;
}

.pink {
height: 200px;
width: 100%;
width: 500px;
background-color: pink;
}

table {
width:100%;
}

table.rows {
margin:0px;
padding:0px;
/*
width: 100%;
*/
font-size: x-small ;
}

table.rows th {
background-color: #909090;
border-style: solid solid solid solid;
border-width: 0px 0px 0px 0px;
border-color: #AAAAAA;
/*text-align: center;*/
text-align: left;
}
table.rows td {
border-style: solid solid solid solid;
border-width: 0px 0px 0px 0px;
border-color: #AAAAAA;
}

table.rows tr {
border-style: solid solid solid solid;
border-width: 0px 0px 0px 0px;
border-color: #AAAAAA;
}

table.rows tr:nth-child(even) {
background-color: #F3F3FF;
}
table.rows tr:nth-child(odd) {
background-color: #FFFFEE;
}

table.head {
margin-bottom:0px;
}
13 changes: 13 additions & 0 deletions docs/_static/css/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* override table width restrictions */
@media screen and (min-width: 767px) {

.wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}

.wy-table-responsive {
overflow: auto !important;
}
}
Binary file added docs/_static/favicon.ico
Binary file not shown.
Loading