Skip to content

Use dvc to manage docs images #6267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jan 27, 2022
Merged
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
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ jobs:
name: gmt-cache
path: .gmt

# Pull baseline image data from dvc remote (DAGsHub)
- name: Pull baseline image data from dvc remote
run: dvc pull

# Move downloaded files to ~/.gmt directory and list them
- name: Move and list downloaded remote files
run: |
Expand Down
2 changes: 1 addition & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Install for building GMT documentation and running tests (not required for gener

- [Sphinx](http://www.sphinx-doc.org) (>=1.8, for building the documentation)
- [GraphicsMagick](http://www.graphicsmagick.org/) (for running the tests)
- [dvc](https://dvc.org/) (for running the tests)
- [dvc](https://dvc.org/) (for running the tests and building the documentation)
- [Ninja](https://ninja-build.org/) (optional, build system focused on speed)
- [pngquant](https://pngquant.org/) (optional, for optimizing PNG images in the documentation)

Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ if (GIT_FOUND AND HAVE_GIT_VERSION)
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/.gitignore
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/package.json
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/vercel.json
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/doc/examples/.gitignore
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/doc/examples/images.dvc
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/doc/scripts/.gitignore
COMMAND ${CMAKE_COMMAND} -E remove ${GMT_RELEASE_PREFIX}/doc/scripts/images.dvc
)
add_depend_to_target (gmt_release git_export_release)
find_program (GNUTAR NAMES gnutar gtar tar)
Expand Down
2 changes: 1 addition & 1 deletion ci/install-dependencies-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sudo apt-get install -y --no-install-recommends --no-install-suggests $packages
# Install more packages for building documentation
if [ "$BUILD_DOCS" = "true" ]; then
sudo snap install pngquant
pip3 install --user docutils==0.17 sphinx
pip3 install --user docutils==0.17 sphinx dvc
# Add sphinx to PATH
echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/install-dependencies-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fi
brew install ${packages}

if [ "$BUILD_DOCS" = "true" ]; then
pip3 install --user docutils==0.17 sphinx
pip3 install --user docutils==0.17 sphinx dvc
# Add sphinx to PATH
echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
fi
Expand Down
2 changes: 1 addition & 1 deletion ci/install-dependencies-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ choco install ninja
choco install ghostscript --version 9.50

if [ "$BUILD_DOCS" = "true" ]; then
pip install --user docutils==0.17 sphinx
pip install --user docutils==0.17 sphinx dvc
# Add sphinx to PATH
echo "$(python -m site --user-site)\..\Scripts" >> $GITHUB_PATH

Expand Down
22 changes: 20 additions & 2 deletions ci/vercel-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,25 @@ set -x -e
# Install GMT dependencies
# Vercel uses Amazon Linux 2 (i.e., EPEL 7)
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install cmake3 ninja-build libcurl-devel netcdf-devel gdal gdal-devel
yum install cmake3 ninja-build libcurl-devel netcdf-devel gdal gdal-devel libsqlite3x-devel

# Need to configure Python with sqlite extensions for dvc
curl -SLO https://www.python.org/ftp/python/3.9.10/Python-3.9.10.tgz
echo '1440acb71471e2394befdb30b1a958d1 Python-3.9.10.tgz' | md5sum -c
tar -xvf Python-3.9.10.tgz
cd Python-3.9.10
./configure --enable-loadable-sqlite-extensions
make
make altinstall
cd ../
python3.9 --version

# Install Python packages
# importlib-resources is required for Python <3.7
pip install docutils==0.17 sphinx importlib-resources
python3.9 -m pip install --user --upgrade pip
python3.9 -m venv env
source env/bin/activate
python3.9 -m pip install sphinx dvc

# Install latest gs
curl -SLO https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9533/ghostscript-9.53.3-linux-x86_64.tgz
Expand All @@ -29,6 +44,9 @@ set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement \${CMAKE_C_FLAGS}")
set (CMAKE_C_FLAGS "-Wextra \${CMAKE_C_FLAGS}")
EOF

# Pull images from DAGsHub repository
dvc pull

# Build and install GMT
mkdir build
cd build
Expand Down
1 change: 1 addition & 0 deletions doc/examples/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/images
2 changes: 1 addition & 1 deletion doc/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if (SPHINX_FOUND)
# Convert figures to PNG
file (GLOB _examples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/*/*.ps")
file (GLOB _examples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/images/*.ps")
set (_examples_png)
foreach (_ps ${_examples})
get_filename_component (_fig ${_ps} NAME)
Expand Down
Binary file removed doc/examples/ex01/ex01.ps
Binary file not shown.
Binary file removed doc/examples/ex02/ex02.ps
Binary file not shown.
Binary file removed doc/examples/ex03/ex03.ps
Binary file not shown.
Binary file removed doc/examples/ex04/ex04.ps
Binary file not shown.
Binary file removed doc/examples/ex04/ex04c.ps
Binary file not shown.
Binary file removed doc/examples/ex05/ex05.ps
Binary file not shown.
Binary file removed doc/examples/ex06/ex06.ps
Binary file not shown.
Binary file removed doc/examples/ex07/ex07.ps
Binary file not shown.
Binary file removed doc/examples/ex08/ex08.ps
Binary file not shown.
Binary file removed doc/examples/ex09/ex09.ps
Binary file not shown.
Binary file removed doc/examples/ex10/ex10.ps
Binary file not shown.
Binary file removed doc/examples/ex11/ex11.ps
Binary file not shown.
Binary file removed doc/examples/ex12/ex12.ps
Binary file not shown.
Binary file removed doc/examples/ex13/ex13.ps
Binary file not shown.
Binary file removed doc/examples/ex14/ex14.ps
Binary file not shown.
Binary file removed doc/examples/ex15/ex15.ps
Binary file not shown.
Binary file removed doc/examples/ex16/ex16.ps
Binary file not shown.
Binary file removed doc/examples/ex17/ex17.ps
Binary file not shown.
Binary file removed doc/examples/ex18/ex18.ps
Binary file not shown.
Binary file removed doc/examples/ex19/ex19.ps
Binary file not shown.
Binary file removed doc/examples/ex20/ex20.ps
Binary file not shown.
Binary file removed doc/examples/ex21/ex21.ps
Binary file not shown.
Binary file removed doc/examples/ex22/ex22.ps
Binary file not shown.
Binary file removed doc/examples/ex23/ex23.ps
Binary file not shown.
Binary file removed doc/examples/ex24/ex24.ps
Binary file not shown.
Binary file removed doc/examples/ex25/ex25.ps
Binary file not shown.
Binary file removed doc/examples/ex26/ex26.ps
Binary file not shown.
Binary file removed doc/examples/ex27/ex27.ps
Binary file not shown.
Binary file removed doc/examples/ex28/ex28.ps
Binary file not shown.
Binary file removed doc/examples/ex29/ex29.ps
Binary file not shown.
Binary file removed doc/examples/ex30/ex30.ps
Binary file not shown.
Binary file removed doc/examples/ex31/ex31.ps
Binary file not shown.
Binary file removed doc/examples/ex32/ex32.ps
Binary file not shown.
Binary file removed doc/examples/ex33/ex33.ps
Binary file not shown.
Binary file removed doc/examples/ex34/ex34.ps
Binary file not shown.
Binary file removed doc/examples/ex35/ex35.ps
Binary file not shown.
Binary file removed doc/examples/ex36/ex36.ps
Binary file not shown.
Binary file removed doc/examples/ex37/ex37.ps
Binary file not shown.
Binary file removed doc/examples/ex38/ex38.ps
Binary file not shown.
Binary file removed doc/examples/ex39/ex39.ps
Binary file not shown.
Binary file removed doc/examples/ex40/ex40.ps
Binary file not shown.
Binary file removed doc/examples/ex41/ex41.ps
Binary file not shown.
Binary file removed doc/examples/ex42/ex42.ps
Binary file not shown.
Binary file removed doc/examples/ex43/ex43.ps
Binary file not shown.
Binary file removed doc/examples/ex44/ex44.ps
Binary file not shown.
Binary file removed doc/examples/ex45/ex45.ps
Binary file not shown.
Binary file removed doc/examples/ex46/ex46.ps
Binary file not shown.
Binary file removed doc/examples/ex47/ex47.ps
Binary file not shown.
Binary file removed doc/examples/ex48/ex48.ps
Binary file not shown.
Binary file removed doc/examples/ex49/ex49.ps
Binary file not shown.
Binary file removed doc/examples/ex50/ex50.ps
Binary file not shown.
Binary file removed doc/examples/ex51/ex51.ps
Binary file not shown.
Binary file removed doc/examples/ex52/ex52.ps
Binary file not shown.
5 changes: 5 additions & 0 deletions doc/examples/images.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
outs:
- md5: 44cb9f554fcf425a648afb8562ef3553.dir
size: 34621100
nfiles: 53
path: images
1 change: 1 addition & 0 deletions doc/rst/source/devdocs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ to install the `Sphinx <http://www.sphinx-doc.org/>`_ documentation builder. Aft
`building GMT <https://github.com/GenericMappingTools/gmt/tree/master/BUILDING.md>`_, you can build GMT documentation using
the following commands within the build directory::

dvc pull
cmake --build . --target docs_depends # Generate images included in the documentation
cmake --build . --target optimize_images # Optimize PNG images for documentation [optional]
cmake --build . --target docs_man # UNIX manual pages
Expand Down
1 change: 1 addition & 0 deletions doc/scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/images
4 changes: 2 additions & 2 deletions doc/scripts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if (SPHINX_FOUND)
# Convert PS to PNG
file (GLOB _scripts_ps2png RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/*.ps")
file (GLOB _scripts_ps2png RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/images/*.ps")
set (_scripts_png)
foreach (_fig ${_scripts_ps2png})
string (REPLACE ".ps" ".png" _png_fig ${_fig})
Expand All @@ -33,7 +33,7 @@ if (SPHINX_FOUND)
endforeach (_fig ${_scripts_ps2png})

# Convert PS to PDF
set (_scripts_ps2pdf GMT_RGBchart_a4.ps GMT_RGBchart_letter.ps GMT_RGBchart_tabloid.ps GMT_App_F_stand+_iso+.ps GMT_App_F_symbol_dingbats.ps)
set (_scripts_ps2pdf images/GMT_RGBchart_a4.ps images/GMT_RGBchart_letter.ps images/GMT_RGBchart_tabloid.ps images/GMT_App_F_stand+_iso+.ps images/GMT_App_F_symbol_dingbats.ps)
set (_scripts_pdf)
foreach (_fig ${_scripts_ps2pdf})
string (REPLACE ".ps" ".pdf" _pdf_fig ${_fig})
Expand Down
Binary file removed doc/scripts/GMT_-B_custom.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_geo_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_geo_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_linear.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_log.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_pow.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_slanted.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-B_time7.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-J.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-R.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-U.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_-XY.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_API_flow.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_API_use.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_E.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_F_stand+_iso+.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_F_symbol_dingbats.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_G.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_J_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_J_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_J_3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_K_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_K_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_K_3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_K_4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_K_5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_M_1a.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_M_1b.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_M_1c.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_M_1d.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_M_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_N_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_7.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_8.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_App_O_9.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_CPTscale.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_Defaults_1a.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_Defaults_1b.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_Defaults_1c.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_RGBchart.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_RGBchart_a4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_RGBchart_letter.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_RGBchart_tabloid.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_SRTM.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_TM.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_agefig.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_albers.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_anchor.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_angle-azim.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_arrows.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_arrows_types.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_atan.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_autolegend.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_az_equidistant.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols3D.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols7.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols8.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_base_symbols9.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_bezier.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cap.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cassini.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_chunking.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cmyk.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_color_hsv.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_color_interpolate.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_colorbar.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_colorlist.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_coverlogo.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cycle_6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_cyclic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_dir_rose.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_earthmask.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_eckert4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_eckert6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_equi_cyl.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_equidistant_conic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_fatline.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_gall_stereo.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_general_cyl.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_gnomonic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_grid2pix.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_grinten.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_hammer.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_hinge.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_images.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_inset.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_joint.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_lambert_az_hemi.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_lambert_az_rect.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_lambert_conic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_latex.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_legend.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_linear.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_linear_cal.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_linear_d.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_linearrow.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_linecap.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_lineoffset.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_log.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_mag_rose.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_map_frame_type.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_mapscale.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_mercator.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_miller.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_misfit.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_mollweide.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_movie_canvas.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_movie_progress.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_nearneighbor.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_obl_baja.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_obl_merc.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_obl_nz.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_orthographic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_panel.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_perspective.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_polar.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_polyconic.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_pow.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_pstext_clearance.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_pstext_justify.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_registration.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_robinson.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_seamount_cum_inc.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_seamount_flux.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_seamount_map.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_seamount_types.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_seislegend.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_sinus_int.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_sinusoidal.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_slope2intensity.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_slopes.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_stereographic_general.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_stereographic_polar.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_stereographic_rect.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_stereonets.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_title_fade.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_transverse_merc.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_1.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_10.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_11.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_12.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_13.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_14.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_15.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_16.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_17.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_18.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_19.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_2.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_3.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_5.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_6.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_7.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_8.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_tut_9.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_utm_zones.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_vector.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_vector4.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_velo.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_vertscale.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_volcano.ps
Binary file not shown.
Binary file removed doc/scripts/GMT_winkel.ps
Binary file not shown.
Binary file removed doc/scripts/grdflexure_approx.ps
Binary file not shown.
5 changes: 5 additions & 0 deletions doc/scripts/images.dvc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
outs:
- md5: f06f5bb715172141321c3a1cf3bca0b7.dir
size: 18603604
nfiles: 193
path: images
Binary file removed doc/scripts/project_setup.ps
Binary file not shown.
Binary file removed doc/scripts/psevents_dz.ps
Binary file not shown.
Binary file removed doc/scripts/psevents_intensity.ps
Binary file not shown.
Binary file removed doc/scripts/psevents_labels.ps
Binary file not shown.
Binary file removed doc/scripts/psevents_size.ps
Binary file not shown.
Binary file removed doc/scripts/psevents_transparency.ps
Binary file not shown.
14 changes: 12 additions & 2 deletions test/gmtest.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ script_dir=$(dirname "${script_name}")
local_script=$(basename "${script_name}")
script="@GMT_SOURCE_DIR@/${script_name}"
src="@GMT_SOURCE_DIR@/${script_dir}"
baseline="@GMT_SOURCE_DIR@/test/baseline/${script_dir#test}"

dvc_test=$(grep DVC_TEST "$script" -c)

if [[ $src == *"doc/examples"* ]]; then
baseline="@GMT_SOURCE_DIR@/doc/examples/images"
dvc_test=1
elif [[ $src == *"doc/scripts"* ]]; then
baseline="@GMT_SOURCE_DIR@/doc/scripts/images/"
dvc_test=1
else
baseline="@GMT_SOURCE_DIR@/test/baseline/${script_dir#test}"
fi

# Skip tests with label GMT_DISABLE_TEST
skip_this_test=$(grep GMT_DISABLE_TEST "$script" -c)
Expand All @@ -25,7 +36,6 @@ if [ $skip_this_test -gt 0 ]; then # Do not run this script, probably PS is too
exit 0
fi

dvc_test=$(grep DVC_TEST "$script" -c)
# Is it a modern mode or one-liner script
modern=$(grep "gmt begin\| -ps " "$script" -c)

Expand Down
3 changes: 1 addition & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"github": {
"silent": true
},
"public": true
}
}