Skip to content

Commit 17fa72c

Browse files
authored
Merge pull request #20 from GOBLIN-Proj/docs
docs
2 parents dc3b9f3 + 1dc82a1 commit 17fa72c

File tree

36 files changed

+699
-50
lines changed

36 files changed

+699
-50
lines changed

INSTALLATION.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Installation
2+
============
3+
4+
This section provides instructions on how to install the software.
5+
6+
Requirements
7+
------------
8+
The software requires the following:
9+
10+
- Python 3.9 or higher
11+
- pandas 2.1.4
12+
- numpy 1.25.0 or higher
13+
- pyaml 6.0.1 or higher
14+
- catchment_data_api 0.1.0 or higher
15+
16+
17+
Install with pip
18+
----------------
19+
You can install the package using pip:
20+
21+
```bash
22+
23+
pip install static_scenario_generator
24+
```
25+
26+
Install from Source
27+
-------------------
28+
To install from source using pip and git:
29+
30+
```bash
31+
pip install git+https://github.com/GOBLIN-Proj/static_scenario_generator.git@main
32+
```
33+
34+

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ pip install "static_scenario_generator@git+https://github.com/GOBLIN-Proj/static
3838

3939
```
4040

41+
Install from PyPI
42+
43+
```bash
44+
pip install static_scenario_generator
45+
```
46+
47+
4148
## Usage
4249
Firstly, the config.json file should look like the following. The example shows two scenarios.
4350

docs/CONTRIBUTING.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributing
2+
3+
Contributions are welcome, and they are greatly appreciated! Every little bit
4+
helps, and credit will always be given.
5+
6+
## Types of Contributions
7+
8+
### Report Bugs
9+
10+
If you are reporting a bug, please include:
11+
12+
* Your operating system name and version.
13+
* Any details about your local setup that might be helpful in troubleshooting.
14+
* Detailed steps to reproduce the bug.
15+
16+
### Fix Bugs
17+
18+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
19+
wanted" is open to whoever wants to implement it.
20+
21+
### Implement Features
22+
23+
Look through the GitHub issues for features. Anything tagged with "enhancement"
24+
and "help wanted" is open to whoever wants to implement it.
25+
26+
### Write Documentation
27+
28+
You can never have enough documentation! Please feel free to contribute to any
29+
part of the documentation, such as the official docs, docstrings, or even
30+
on the web in blog posts, articles, and such.
31+
32+
### Submit Feedback
33+
34+
If you are proposing a feature:
35+
36+
* Explain in detail how it would work.
37+
* Keep the scope as narrow as possible, to make it easier to implement.
38+
* Remember that this is a volunteer-driven project, and that contributions
39+
are welcome :)
40+
41+
## Get Started!
42+
43+
Ready to contribute? Here's how to set up `static_scenario_generator` for local development.
44+
45+
1. Download a copy of `static_scenario_generator` locally.
46+
2. Install `static_scenario_generator` using `poetry`:
47+
48+
```console
49+
$ poetry install
50+
```
51+
52+
3. Use `git` (or similar) to create a branch for local development and make your changes:
53+
54+
```console
55+
$ git checkout -b name-of-your-bugfix-or-feature
56+
```
57+
58+
4. Create an issue, unless one exists.
59+
60+
5. When you're done making changes, check that your changes conform to any code formatting requirements and pass any tests.
61+
62+
6. Commit your changes and open a pull request.
63+
64+
7. Link pull request to open issue. Github provides a helpful [guide](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
65+
66+
## Pull Request Guidelines
67+
68+
Before you submit a pull request, check that it meets these guidelines:
69+
70+
1. The pull request should include additional tests if appropriate.
71+
2. If the pull request adds functionality, the docs should be updated.
72+
3. The pull request should work for all currently supported operating systems and versions of Python.
73+
4. The pull request should be linked to an issue.

docs/INSTALLATION.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Installation
2+
============
3+
4+
This section provides instructions on how to install the software.
5+
6+
Requirements
7+
------------
8+
The software requires the following:
9+
10+
- Python 3.9 or higher
11+
- pandas 2.1.4
12+
- numpy 1.25.0 or higher
13+
- pyaml 6.0.1 or higher
14+
- catchment_data_api 0.1.0 or higher
15+
16+
17+
Install with pip
18+
----------------
19+
You can install the package using pip:
20+
21+
```bash
22+
23+
pip install static_scenario_generator
24+
```
25+
26+
Install from Source
27+
-------------------
28+
To install from source using pip and git:
29+
30+
```bash
31+
pip install git+https://github.com/GOBLIN-Proj/static_scenario_generator.git@main
32+
```
33+
34+

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
project = 'Static Scenario Generator'
1010
copyright = '2024, Colm Duffy'
1111
author = 'Colm Duffy'
12-
release = '1.1.0'
12+
release = '1.1.1'
1313

1414
# -- General configuration ---------------------------------------------------
1515
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

docs/html/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 8a245f68bed602d6132a0a941ae909d9
3+
config: fe35a8e2ead0b3c3044aeadb4a322c37
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/html/CONTRIBUTING.html

Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
<!DOCTYPE html>
2+
<html class="writer-html5" lang="en" data-content_root="./">
3+
<head>
4+
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
5+
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Contributing &mdash; Static Scenario Generator 1.1.1 documentation</title>
8+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
9+
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
10+
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
11+
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=eafc0fe6" />
12+
13+
14+
<!--[if lt IE 9]>
15+
<script src="_static/js/html5shiv.min.js"></script>
16+
<![endif]-->
17+
18+
<script src="_static/jquery.js?v=5d32c60e"></script>
19+
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
20+
<script src="_static/documentation_options.js?v=58fbf978"></script>
21+
<script src="_static/doctools.js?v=888ff710"></script>
22+
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
23+
<script src="_static/js/theme.js"></script>
24+
<link rel="index" title="Index" href="genindex.html" />
25+
<link rel="search" title="Search" href="search.html" />
26+
<link rel="next" title="API Reference" href="autoapi/index.html" />
27+
<link rel="prev" title="Installation" href="INSTALLATION.html" />
28+
</head>
29+
30+
<body class="wy-body-for-nav">
31+
<div class="wy-grid-for-nav">
32+
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
33+
<div class="wy-side-scroll">
34+
<div class="wy-side-nav-search" >
35+
36+
37+
38+
<a href="index.html" class="icon icon-home">
39+
Static Scenario Generator
40+
</a>
41+
<div role="search">
42+
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
43+
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
44+
<input type="hidden" name="check_keywords" value="yes" />
45+
<input type="hidden" name="area" value="default" />
46+
</form>
47+
</div>
48+
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
49+
<ul class="current">
50+
<li class="toctree-l1"><a class="reference internal" href="INSTALLATION.html">Installation</a></li>
51+
<li class="toctree-l1 current"><a class="current reference internal" href="#">Contributing</a><ul>
52+
<li class="toctree-l2"><a class="reference internal" href="#types-of-contributions">Types of Contributions</a><ul>
53+
<li class="toctree-l3"><a class="reference internal" href="#report-bugs">Report Bugs</a></li>
54+
<li class="toctree-l3"><a class="reference internal" href="#fix-bugs">Fix Bugs</a></li>
55+
<li class="toctree-l3"><a class="reference internal" href="#implement-features">Implement Features</a></li>
56+
<li class="toctree-l3"><a class="reference internal" href="#write-documentation">Write Documentation</a></li>
57+
<li class="toctree-l3"><a class="reference internal" href="#submit-feedback">Submit Feedback</a></li>
58+
</ul>
59+
</li>
60+
<li class="toctree-l2"><a class="reference internal" href="#get-started">Get Started!</a></li>
61+
<li class="toctree-l2"><a class="reference internal" href="#pull-request-guidelines">Pull Request Guidelines</a></li>
62+
</ul>
63+
</li>
64+
<li class="toctree-l1"><a class="reference internal" href="autoapi/index.html">API Reference</a></li>
65+
<li class="toctree-l1"><a class="reference internal" href="example.html">Static Scenario Generation Example</a></li>
66+
</ul>
67+
68+
</div>
69+
</div>
70+
</nav>
71+
72+
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
73+
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
74+
<a href="index.html">Static Scenario Generator</a>
75+
</nav>
76+
77+
<div class="wy-nav-content">
78+
<div class="rst-content">
79+
<div role="navigation" aria-label="Page navigation">
80+
<ul class="wy-breadcrumbs">
81+
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
82+
<li class="breadcrumb-item active">Contributing</li>
83+
<li class="wy-breadcrumbs-aside">
84+
<a href="_sources/CONTRIBUTING.md.txt" rel="nofollow"> View page source</a>
85+
</li>
86+
</ul>
87+
<hr/>
88+
</div>
89+
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
90+
<div itemprop="articleBody">
91+
92+
<section id="contributing">
93+
<h1>Contributing<a class="headerlink" href="#contributing" title="Link to this heading"></a></h1>
94+
<p>Contributions are welcome, and they are greatly appreciated! Every little bit
95+
helps, and credit will always be given.</p>
96+
<section id="types-of-contributions">
97+
<h2>Types of Contributions<a class="headerlink" href="#types-of-contributions" title="Link to this heading"></a></h2>
98+
<section id="report-bugs">
99+
<h3>Report Bugs<a class="headerlink" href="#report-bugs" title="Link to this heading"></a></h3>
100+
<p>If you are reporting a bug, please include:</p>
101+
<ul class="simple">
102+
<li><p>Your operating system name and version.</p></li>
103+
<li><p>Any details about your local setup that might be helpful in troubleshooting.</p></li>
104+
<li><p>Detailed steps to reproduce the bug.</p></li>
105+
</ul>
106+
</section>
107+
<section id="fix-bugs">
108+
<h3>Fix Bugs<a class="headerlink" href="#fix-bugs" title="Link to this heading"></a></h3>
109+
<p>Look through the GitHub issues for bugs. Anything tagged with “bug” and “help
110+
wanted” is open to whoever wants to implement it.</p>
111+
</section>
112+
<section id="implement-features">
113+
<h3>Implement Features<a class="headerlink" href="#implement-features" title="Link to this heading"></a></h3>
114+
<p>Look through the GitHub issues for features. Anything tagged with “enhancement”
115+
and “help wanted” is open to whoever wants to implement it.</p>
116+
</section>
117+
<section id="write-documentation">
118+
<h3>Write Documentation<a class="headerlink" href="#write-documentation" title="Link to this heading"></a></h3>
119+
<p>You can never have enough documentation! Please feel free to contribute to any
120+
part of the documentation, such as the official docs, docstrings, or even
121+
on the web in blog posts, articles, and such.</p>
122+
</section>
123+
<section id="submit-feedback">
124+
<h3>Submit Feedback<a class="headerlink" href="#submit-feedback" title="Link to this heading"></a></h3>
125+
<p>If you are proposing a feature:</p>
126+
<ul class="simple">
127+
<li><p>Explain in detail how it would work.</p></li>
128+
<li><p>Keep the scope as narrow as possible, to make it easier to implement.</p></li>
129+
<li><p>Remember that this is a volunteer-driven project, and that contributions
130+
are welcome :)</p></li>
131+
</ul>
132+
</section>
133+
</section>
134+
<section id="get-started">
135+
<h2>Get Started!<a class="headerlink" href="#get-started" title="Link to this heading"></a></h2>
136+
<p>Ready to contribute? Here’s how to set up <code class="docutils literal notranslate"><span class="pre">static_scenario_generator</span></code> for local development.</p>
137+
<ol class="arabic">
138+
<li><p>Download a copy of <code class="docutils literal notranslate"><span class="pre">static_scenario_generator</span></code> locally.</p></li>
139+
<li><p>Install <code class="docutils literal notranslate"><span class="pre">static_scenario_generator</span></code> using <code class="docutils literal notranslate"><span class="pre">poetry</span></code>:</p>
140+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>poetry<span class="w"> </span>install
141+
</pre></div>
142+
</div>
143+
</li>
144+
<li><p>Use <code class="docutils literal notranslate"><span class="pre">git</span></code> (or similar) to create a branch for local development and make your changes:</p>
145+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">$ </span>git<span class="w"> </span>checkout<span class="w"> </span>-b<span class="w"> </span>name-of-your-bugfix-or-feature
146+
</pre></div>
147+
</div>
148+
</li>
149+
<li><p>Create an issue, unless one exists.</p></li>
150+
<li><p>When you’re done making changes, check that your changes conform to any code formatting requirements and pass any tests.</p></li>
151+
<li><p>Commit your changes and open a pull request.</p></li>
152+
<li><p>Link pull request to open issue. Github provides a helpful <a class="reference external" href="https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue">guide</a></p></li>
153+
</ol>
154+
</section>
155+
<section id="pull-request-guidelines">
156+
<h2>Pull Request Guidelines<a class="headerlink" href="#pull-request-guidelines" title="Link to this heading"></a></h2>
157+
<p>Before you submit a pull request, check that it meets these guidelines:</p>
158+
<ol class="arabic simple">
159+
<li><p>The pull request should include additional tests if appropriate.</p></li>
160+
<li><p>If the pull request adds functionality, the docs should be updated.</p></li>
161+
<li><p>The pull request should work for all currently supported operating systems and versions of Python.</p></li>
162+
<li><p>The pull request should be linked to an issue.</p></li>
163+
</ol>
164+
</section>
165+
</section>
166+
167+
168+
</div>
169+
</div>
170+
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
171+
<a href="INSTALLATION.html" class="btn btn-neutral float-left" title="Installation" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
172+
<a href="autoapi/index.html" class="btn btn-neutral float-right" title="API Reference" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
173+
</div>
174+
175+
<hr/>
176+
177+
<div role="contentinfo">
178+
<p>&#169; Copyright 2024, Colm Duffy.</p>
179+
</div>
180+
181+
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
182+
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
183+
provided by <a href="https://readthedocs.org">Read the Docs</a>.
184+
185+
186+
</footer>
187+
</div>
188+
</div>
189+
</section>
190+
</div>
191+
<script>
192+
jQuery(function () {
193+
SphinxRtdTheme.Navigation.enable(true);
194+
});
195+
</script>
196+
197+
</body>
198+
</html>

0 commit comments

Comments
 (0)