Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions doc/rst/source/examples/ex001/ex001.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

gmt begin basemap png
gmt basemap -R0/10/0/10 -JM10c -Baf
gmt end show
9 changes: 9 additions & 0 deletions doc/rst/source/examples/ex001/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Demo example
============

This is a demo for the gallery of simple examples.

.. literalinclude:: ex001.sh

.. image:: https://user-images.githubusercontent.com/3974108/122659135-7cfe0100-d142-11eb-9a3f-e1ecf5b3d35c.png
:width: 80%
Comment on lines +8 to +9
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we should use this strategy for including images hosted on GitHub because anyone who builds the documentation and/or uses the bundle docs offline will not be able to see the images.

37 changes: 37 additions & 0 deletions doc/rst/source/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Examples
========

In this page we show numerous simple GMT examples.

.. toctree::
:hidden:
:glob:

ex*/index

.. cssclass:: gmtgallery

Basemaps
--------

- .. figure:: https://user-images.githubusercontent.com/3974108/122659135-7cfe0100-d142-11eb-9a3f-e1ecf5b3d35c.png
:target: ./ex001/index.html
:width: 80%
:align: center

:doc:`ex001/index`

Coastlines
----------

Lines, Polygons and Vectors
---------------------------

Symbols
-------

Grids and Images
----------------

Contour Maps
------------
4 changes: 2 additions & 2 deletions doc/rst/source/gallery.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.. _example_gallery:

Example Gallery
===============
Gallery
=======

In this section we will be giving numerous examples of typical usage of
GMT programs. In general, we will start with a raw data set,
Expand Down
1 change: 1 addition & 0 deletions doc/rst/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Quick links
:caption: Getting started

gallery
examples/index
animations
tutorial

Expand Down