Skip to content

Commit c53ad1c

Browse files
Update documentation
1 parent 4ee8e25 commit c53ad1c

13 files changed

Lines changed: 3735 additions & 2414 deletions

README.html

Lines changed: 107 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta charset="utf-8" />
99
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
1010

11-
<title>geopython-tutorials &#8212; Geospatial Python Tutorials</title>
11+
<title>Geospatial Python Tutorials &#8212; Geospatial Python Tutorials</title>
1212

1313

1414

@@ -386,7 +386,9 @@
386386
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
387387
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
388388
</button>
389-
389+
<button class="sidebar-toggle secondary-toggle btn btn-sm" title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
390+
<span class="fa-solid fa-list"></span>
391+
</button>
390392
</div></div>
391393

392394
</div>
@@ -397,11 +399,27 @@
397399

398400

399401
<div id="jb-print-docs-body" class="onlyprint">
400-
<h1>geopython-tutorials</h1>
402+
<h1>Geospatial Python Tutorials</h1>
401403
<!-- Table of contents -->
402404
<div id="print-main-content">
403405
<div id="jb-print-toc">
404406

407+
<div>
408+
<h2> Contents </h2>
409+
</div>
410+
<nav aria-label="Page">
411+
<ul class="visible nav section-nav flex-column">
412+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#clone-the-repository">Clone the Repository</a></li>
413+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#installation">Installation</a></li>
414+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#updating-the-contents">Updating the Contents</a><ul class="nav section-nav flex-column">
415+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#editing-existing-tutorials">Editing existing tutorials</a></li>
416+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#adding-a-new-tutorial">Adding a new tutorial</a></li>
417+
</ul>
418+
</li>
419+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#build-the-website-and-push-the-changes">Build the Website and Push the Changes</a></li>
420+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#license">License</a></li>
421+
</ul>
422+
</nav>
405423
</div>
406424
</div>
407425
</div>
@@ -411,9 +429,68 @@ <h1>geopython-tutorials</h1>
411429
<div id="searchbox"></div>
412430
<article class="bd-article">
413431

414-
<section id="geopython-tutorials">
415-
<h1>geopython-tutorials<a class="headerlink" href="#geopython-tutorials" title="Link to this heading">#</a></h1>
416-
<p>Repository for Geospatial Python Tutorials</p>
432+
<section id="geospatial-python-tutorials">
433+
<h1>Geospatial Python Tutorials<a class="headerlink" href="#geospatial-python-tutorials" title="Link to this heading">#</a></h1>
434+
<p>This repository contains the notebooks and Jupyterbook configuration for the <a class="reference external" href="https://www.geopythontutorials.com/">Geospatial Python Tutorials</a> website.</p>
435+
<p>The website is a static website generated using the following technologies</p>
436+
<ul class="simple">
437+
<li><p>All the content is based on Markdown files and Jupyter notebooks.</p></li>
438+
<li><p>The HTML is generated using <a class="reference external" href="https://jupyterbook.org/en/stable/intro.html">Jupyterbook</a>.</p></li>
439+
<li><p>The webpages are hosted on <a class="reference external" href="https://pages.github.com/">Github Pages</a>.</p></li>
440+
<li><p>Comments are powered by <a class="reference external" href="https://utteranc.es/">utterances</a>.</p></li>
441+
</ul>
442+
<section id="clone-the-repository">
443+
<h2>Clone the Repository<a class="headerlink" href="#clone-the-repository" title="Link to this heading">#</a></h2>
444+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">git</span> <span class="n">clone</span> <span class="n">git</span><span class="nd">@github</span><span class="o">.</span><span class="n">com</span><span class="p">:</span><span class="n">spatialthoughts</span><span class="o">/</span><span class="n">geopython</span><span class="o">-</span><span class="n">tutorials</span><span class="o">.</span><span class="n">git</span>
445+
<span class="n">cd</span> <span class="n">geopython</span><span class="o">-</span><span class="n">tutorials</span>
446+
</pre></div>
447+
</div>
448+
</section>
449+
<section id="installation">
450+
<h2>Installation<a class="headerlink" href="#installation" title="Link to this heading">#</a></h2>
451+
<p>The following instructions have been tested for Linux/Mac systems. I prefer conda for environment management so the instructions use conda, but if you prefer virtualenv, you can use it instead as well.</p>
452+
<p>Create a new environment named <code class="docutils literal notranslate"><span class="pre">geopython-tutorials</span></code> and install dependencies. Optionally we also need <code class="docutils literal notranslate"><span class="pre">make</span></code> to build the source files.</p>
453+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">conda</span> <span class="n">create</span> <span class="o">--</span><span class="n">name</span> <span class="n">geopython</span><span class="o">-</span><span class="n">tutorials</span>
454+
<span class="n">conda</span> <span class="n">activate</span> <span class="n">geopython</span><span class="o">-</span><span class="n">tutorials</span>
455+
<span class="n">conda</span> <span class="n">install</span> <span class="n">pip</span>
456+
<span class="n">conda</span> <span class="n">install</span> <span class="n">make</span>
457+
<span class="n">pip</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">.</span><span class="n">txt</span>
458+
</pre></div>
459+
</div>
460+
</section>
461+
<section id="updating-the-contents">
462+
<h2>Updating the Contents<a class="headerlink" href="#updating-the-contents" title="Link to this heading">#</a></h2>
463+
<p>The homepage content is in the file <code class="docutils literal notranslate"><span class="pre">introduction.md</span></code>. All other content is generated from the <code class="docutils literal notranslate"><span class="pre">.ipynb</span></code> files in the <code class="docutils literal notranslate"><span class="pre">notebooks</span></code> folder. The table of content is in the <code class="docutils literal notranslate"><span class="pre">_toc.yml</span></code> file.</p>
464+
<section id="editing-existing-tutorials">
465+
<h3>Editing existing tutorials<a class="headerlink" href="#editing-existing-tutorials" title="Link to this heading">#</a></h3>
466+
<ul class="simple">
467+
<li><p>Edit the corresponding notebook in the <code class="docutils literal notranslate"><span class="pre">notebooks/</span></code> folder using Jupyterlab/Colab.</p></li>
468+
</ul>
469+
</section>
470+
<section id="adding-a-new-tutorial">
471+
<h3>Adding a new tutorial<a class="headerlink" href="#adding-a-new-tutorial" title="Link to this heading">#</a></h3>
472+
<ul class="simple">
473+
<li><p>Add the <code class="docutils literal notranslate"><span class="pre">.ipynb</span></code> file in the <code class="docutils literal notranslate"><span class="pre">notebooks/</span></code> folder.</p></li>
474+
<li><p>Edit the <code class="docutils literal notranslate"><span class="pre">_toc.yml</span></code> file and add the section for the new tutorial.</p></li>
475+
</ul>
476+
</section>
477+
</section>
478+
<section id="build-the-website-and-push-the-changes">
479+
<h2>Build the Website and Push the Changes<a class="headerlink" href="#build-the-website-and-push-the-changes" title="Link to this heading">#</a></h2>
480+
<p>The <code class="docutils literal notranslate"><span class="pre">Makefile</span></code> contains several rules to execute the commands to build the website.</p>
481+
<p>After making changes, run the following to build the HTML pages and preview them.</p>
482+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">make</span> <span class="n">html</span>
483+
</pre></div>
484+
</div>
485+
<p>To push the changes to GitHub pages, run the following</p>
486+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">make</span> <span class="n">gh</span><span class="o">-</span><span class="n">pages</span>
487+
</pre></div>
488+
</div>
489+
</section>
490+
<section id="license">
491+
<h2>License<a class="headerlink" href="#license" title="Link to this heading">#</a></h2>
492+
<p>All the tutorials are available under a <a class="reference external" href="http://creativecommons.org/licenses/by/4.0/deed.en_US">Creative Commons Attribution 4.0 International License</a></p>
493+
</section>
417494
</section>
418495

419496
<script type="text/x-thebe-config">
@@ -453,6 +530,30 @@ <h1>geopython-tutorials<a class="headerlink" href="#geopython-tutorials" title="
453530

454531

455532

533+
<dialog id="pst-secondary-sidebar-modal"></dialog>
534+
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
535+
536+
537+
<div class="sidebar-secondary-item">
538+
<div class="page-toc tocsection onthispage">
539+
<i class="fa-solid fa-list"></i> Contents
540+
</div>
541+
<nav class="bd-toc-nav page-toc">
542+
<ul class="visible nav section-nav flex-column">
543+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#clone-the-repository">Clone the Repository</a></li>
544+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#installation">Installation</a></li>
545+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#updating-the-contents">Updating the Contents</a><ul class="nav section-nav flex-column">
546+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#editing-existing-tutorials">Editing existing tutorials</a></li>
547+
<li class="toc-h3 nav-item toc-entry"><a class="reference internal nav-link" href="#adding-a-new-tutorial">Adding a new tutorial</a></li>
548+
</ul>
549+
</li>
550+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#build-the-website-and-push-the-changes">Build the Website and Push the Changes</a></li>
551+
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#license">License</a></li>
552+
</ul>
553+
</nav></div>
554+
555+
</div></div>
556+
456557

457558
</div>
458559
<footer class="bd-footer-content">
52.2 KB
Loading
Binary file not shown.
Binary file not shown.
202 KB
Loading
128 KB
Loading
20.7 KB
Loading
Binary file not shown.

_sources/README.md

Lines changed: 67 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,67 @@
1-
# geopython-tutorials
2-
Repository for Geospatial Python Tutorials
1+
# Geospatial Python Tutorials
2+
3+
This repository contains the notebooks and Jupyterbook configuration for the [Geospatial Python Tutorials](https://www.geopythontutorials.com/) website.
4+
5+
The website is a static website generated using the following technologies
6+
7+
* All the content is based on Markdown files and Jupyter notebooks.
8+
* The HTML is generated using [Jupyterbook](https://jupyterbook.org/en/stable/intro.html).
9+
* The webpages are hosted on [Github Pages](https://pages.github.com/).
10+
* Comments are powered by [utterances](https://utteranc.es/).
11+
12+
## Clone the Repository
13+
14+
```
15+
git clone git@github.com:spatialthoughts/geopython-tutorials.git
16+
cd geopython-tutorials
17+
```
18+
19+
20+
## Installation
21+
22+
The following instructions have been tested for Linux/Mac systems. I prefer conda for environment management so the instructions use conda, but if you prefer virtualenv, you can use it instead as well.
23+
24+
Create a new environment named `geopython-tutorials` and install dependencies. Optionally we also need `make` to build the source files.
25+
26+
```
27+
conda create --name geopython-tutorials
28+
conda activate geopython-tutorials
29+
conda install pip
30+
conda install make
31+
pip install -r requirements.txt
32+
```
33+
34+
## Updating the Contents
35+
36+
The homepage content is in the file `introduction.md`. All other content is generated from the `.ipynb` files in the `notebooks` folder. The table of content is in the `_toc.yml` file.
37+
38+
### Editing existing tutorials
39+
40+
* Edit the corresponding notebook in the `notebooks/` folder using Jupyterlab/Colab.
41+
42+
### Adding a new tutorial
43+
44+
* Add the `.ipynb` file in the `notebooks/` folder.
45+
* Edit the `_toc.yml` file and add the section for the new tutorial.
46+
47+
## Build the Website and Push the Changes
48+
49+
The `Makefile` contains several rules to execute the commands to build the website.
50+
51+
After making changes, run the following to build the HTML pages and preview them.
52+
53+
```
54+
make html
55+
```
56+
57+
To push the changes to GitHub pages, run the following
58+
59+
60+
```
61+
make gh-pages
62+
```
63+
64+
License
65+
-------
66+
67+
All the tutorials are available under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/deed.en_US)

0 commit comments

Comments
 (0)