Code Monkey home page Code Monkey logo

pygeoapi.io's Introduction

Build Status Join the chat at https://app.gitter.im/#/room/#geopython_pygeoapi:gitter.img

pygeoapi.io website

The pygeoapi website is powered by MkDocs which facilitates easy management of website content and publishing.

Setting up the website environment locally

# build a virtual Python environment in isolation
python3 -m venv pygeoapi-website
cd pygeoapi-website
# download the website from GitHub
git clone https://github.com/geopython/pygeoapi.io.git
cd pygeoapi.io
# install required dependencies
pip3 install -r requirements.txt
# build the website
mkdocs build
# serve locally
mkdocs serve  # website is made available on http://localhost:8000/

Content management workflow

Overview

To manage content you require an account on GitHub. From here you can either

  1. fork the repository, make your own changes and issue a pull request, or 2. edit the content directly. For option 2 the necessary permissions are required.

The basic workflow is as follows:

  • manage content
  • commit updates
  • publish to the live site

Adding a page

vi docs/new-page.md  # add content
vi mkdocs.yml  # add to navigation section
# edit any other files necessary which may want to link to the new page
git add docs/new-page.md
git commit -m 'add new page on topic x' docs/new-page.md mkdocs.yml
git push origin master

Updating a page

vi content/page.md  # update content
git commit -m 'update page' content/page.md
git push origin master

Publishing updates to the live site

Website updates are automatically published via GitHub Actions, but just in case:

# NOTE: you require access privileges to the GitHub repository
# to publish live updates
mkdocs gh-deploy -m 'add new page on topic x'

pygeoapi.io's People

Contributors

tomkralidis avatar justb4 avatar kalxas avatar francbartoli avatar doublebyte1 avatar carlosmed avatar isedwards avatar krishnaglodha avatar geosander avatar webb-ben avatar jmckenna avatar totycro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.