Skip to content

Commit

Permalink
268 docs gtfs tutorial (#284)
Browse files Browse the repository at this point in the history
* chore: Ignore quarto lint

* chore: Add diff in gtfs.qmd before context switch to PR

* chore: Adjust file locations to integrate with new site structure

* feat: Set up GTFS page as a listing

* docs: Fix small typo

* fix: Update listings to ensure individual articles aren't listed along with sub-indexes

* style: Add scrolling tag to table printouts

* feat: Task to ingest data

* feat: Task to examine attributes of MultiGtfsInstance

* feat: Check validity task

* feat: Task to visualise stop locations

* feat: Cropping intro

* feat: Filter to bbox explanation

* feat: Explain date restriction method with date ranges

* feat: Create calendar from calendar-dates task

* feat: Final task & conclusion

* fix: Minor typos

* refactor: Move downloads to tmp for tutorial

* chore: Rename tutorial filenm according to latest title

* chore: Remove kernelspec from YAML

* fix: Remove unused imports

* fix: Rm reference to here in hint code block

* chore: changed bus GTFS source to improve BBOX coverage

* chore: added docs wide css file; changed from tutorial specific file

* chore: moved GTFS tutorial to be accessible from  main listing

* style: Adjusting line lengths

* feat: Add tabular summary task

* feat: added trip count timeseries visual

* chore: swapped help() for links to API docs

* refactor: Remove help chunk for GtfsInstance and replace links with ones that open externally

* refactor: Small typo

* chore: removed unnecessary css file

* fix: ordering with how to pages

* fix: removed reference to jupyter kernel in yaml

---------

Co-authored-by: Ethan Moss <[email protected]>
  • Loading branch information
r-leyshon and ethan-moss authored Jun 4, 2024
1 parent 8f3e4bd commit 184fd5e
Show file tree
Hide file tree
Showing 12 changed files with 644 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
docs/tutorials/*_files/
docs/tutorials/outputs/

# transport modelling data formats
**/*.pbf
**/*.mapdb
Expand Down
5 changes: 4 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ website:
- section: How-To
href: docs/how_to/index.qmd
contents:
- auto: "docs/how_to/**/*.qmd"
- "docs/how_to/uc_pop/index.qmd"
- "docs/how_to/gtfs/index.qmd"
- "docs/how_to/osm/index.qmd"
- section: Tutorials
href: docs/tutorials/index.qmd
contents:
Expand Down Expand Up @@ -84,6 +86,7 @@ website:
format:
html:
css: docs/_static/styles.css
mainfont: Arial
theme:
- flatly
Expand Down
4 changes: 4 additions & 0 deletions docs/_static/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.scrolling {
max-height: 500px;
overflow-y: auto;
}
2 changes: 1 addition & 1 deletion docs/explanation/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Explanation
listing:
type: table
contents:
- "/**/*.qmd"
- "/**/index.qmd"
fields: [title, description, reading-time]
sort: title
sort-ui: true
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/gtfs/index.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "1. Get Public Transit Schedule Data (GTFS)"
title: "2. Get Public Transit Schedule Data (GTFS)"
description: Instructions on retrieving public transit schedule GTFS data.
date-modified: 05/16/2024 # must be in MM/DD/YYYY format
categories: ["How-To"] # see https://diataxis.fr/tutorials-how-to/#tutorials-how-to, delete as appropriate
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: How-To
listing:
type: table
contents:
- "/**/*.qmd"
- "/**/index.qmd"
fields: [title, description, reading-time]
sort: title
sort-ui: true
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/osm/index.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "2. Get OpenStreetMap Data"
title: "3. Get OpenStreetMap Data"
description: Instructions on retrieving OpenStreetMap data.
date-modified: 05/16/2024 # must be in MM/DD/YYYY format
categories: ["How-To"] # see https://diataxis.fr/tutorials-how-to/#tutorials-how-to, delete as appropriate
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/uc_pop/index.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "3. Get Gridded Population Estimates"
title: "1. Get Gridded Population Estimates"
description: Instructions on retrieving gridded population estimates for calculating urban centres and population distributions.
date-modified: 05/16/2024 # must be in MM/DD/YYYY format
categories: ["How-To"] # see https://diataxis.fr/tutorials-how-to/#tutorials-how-to, delete as appropriate
Expand Down
Loading

0 comments on commit 184fd5e

Please sign in to comment.