Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d81bd47
Add CC-BY-4.0 License
Jan 5, 2022
ca09682
Add short description
Jan 5, 2022
23e0066
Add environment.yml
Jan 5, 2022
5fc15f9
Add .gitignore
Jan 5, 2022
8372f96
Fix environment.yml
Jan 5, 2022
eef7bb9
Add requirements.txt
Jan 5, 2022
2eaaaca
Add vercel.json
Jan 5, 2022
0e474ab
Setup sphinx documentation for gmt-examples
Jan 5, 2022
9c97b85
Remove extra whitespace
Jan 5, 2022
93c01d4
Add workflow for deploying docs
Jan 6, 2022
d8bfe91
Fix requirements
Jan 6, 2022
1fe5d2b
Fix indentation
Jan 6, 2022
0fcfad9
Add package.json for continuous documentation
Jan 6, 2022
89d1be5
Remove requirements.txt
Jan 6, 2022
a4768ff
Update build workflow to use mamba
Jan 6, 2022
c8a6cce
Update docs/conf.py
Jan 6, 2022
8b1222b
Update image link
Jan 6, 2022
3bd8a64
Use public dir for continuous documentation
Jan 6, 2022
4defe37
Re-add requirements.txt
Jan 6, 2022
9b68b47
Update vercel.json
Jan 6, 2022
b183561
Add contributors guide and code of conduct
Jan 6, 2022
9709df8
Update package.json
Jan 6, 2022
95399dc
Add pip instructions
Jan 6, 2022
139db3d
Remove extra comments
Jan 6, 2022
4b7a085
Add links to sections
Jan 6, 2022
f82e513
Apply suggestions from code review
Jan 7, 2022
65d7475
Update copyright, author, and add authors guideline
Jan 11, 2022
cefc545
Move gallery and tutorials dirs under docs
Jan 11, 2022
facfdab
Set default highlight language
Jan 11, 2022
86afebb
Remove myst-parser dependency
Jan 11, 2022
c4c9259
Move up examples overview section
Jan 11, 2022
b46c478
Add description of dependencies
Jan 11, 2022
30fe388
Add note about Python environment
Jan 11, 2022
6a581e8
Apply suggestions from code review
Jan 12, 2022
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
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#
# Build documentation and deploy
#
name: Docs

on:
# pull_request:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/**'

jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v2.4.0

# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2.1.1
with:
activate-environment: gmt-examples
environment-file: environment.yml
python-version: 3.8
channels: conda-forge,nodefaults
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true

# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: mamba list

- name: Build the website
run: make -C docs clean html

- name: Deploy to gh-pages
if: success() && github.event_name == 'push'
# Don't use tags: https://julienrenaux.fr/2019/12/20/github-actions-security-risk/
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html/
# Only keep the latest commit to avoid bloating the repository
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Sphinx documentation
docs/_build/

# Visual Studio Code
.vscode/

# Environments
.env

# Backup copies / swap files
*~
.*.swp

# macOS
.DS_Store
133 changes: 133 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Contributor Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
``pwessel at hawaii dot edu``, ``leouieda at gmail dot com``, or
``meghanj at hawaii dot edu``. All complaints will be reviewed and investigated
promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
at [https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing Guidelines

:tada: **First off, thank you for considering contributing to our project!** :tada:

This is a community-driven project, so it's people like you that make it useful and
successful.
These are some of the many ways to contribute:

* :bug: Submitting bug reports and feature requests
* :memo: Writing tutorials or examples
* :mag: Fixing typos and improving the documentation
* :people_holding_hands: Community engagement and outreach

If you get stuck at any point you can create an
[issue](https://github.com/GenericMappingTools/gmt-examples/issues) on GitHub or
get in touch through the [GMT Forum](https://forum.generic-mapping-tools.org/).

For more information on contributing to open source projects,
[GitHub's own guide](https://opensource.guide/how-to-contribute)
is a great starting point if you are new to version control.

Detailed instructions for contributors to the GMT Examples project can be found
in the [contributors guide](https://www.generic-mapping-tools.org/gmt-examples/contributing.html).

## Ground Rules

The goal is to maintain a diverse community that's pleasant for everyone.
**Please be considerate and respectful of others**.
Everyone must abide by our [Code of Conduct](CODE_OF_CONDUCT.md) and we encourage all to
read it carefully.

## The `AUTHORS.md` file

Anyone who has contributed a pull request to the project is welcome to add
themselves to the `AUTHORS.md` file.
Loading