Skip to content

POC: WIP: Redesign landing page of PyGMT website - #4762

Draft
yvonnefroehlich wants to merge 41 commits into
mainfrom
create-website-cards
Draft

POC: WIP: Redesign landing page of PyGMT website#4762
yvonnefroehlich wants to merge 41 commits into
mainfrom
create-website-cards

Conversation

@yvonnefroehlich

@yvonnefroehlich yvonnefroehlich commented Jul 25, 2026

Copy link
Copy Markdown
Member

Description of proposed changes

Currently trying out different ideas and approaches regarding improving the PyGMT website, especially the landing page. Seeing / experimenting how different layouts would look like, using grids, cards, buttons, and icons (xref: https://sphinx-design.readthedocs.io/en/rtd-theme/index.htm).

Fixes #4746

Disscussion (see also issue #4746)

  • How many cards do we want?
  • Use same structur as side bar? One card per main sections or cards only for specific topics?
  • Coloring of cards? Globally or different for the landing page and External Resources?
  • Add a new main section Project Overview (or similar)? Reorder sidebar partly?

Preview

(I) (II) a (II) b
image image image

Major changes

  • Use cards on landing page
    • (I) Cards similar to the main sections: 6 cards as 3 columns and 2 rows (laptop) or vertical (smartphone), buttons for subsections
    • (II) a / b Card for specific topics: 9 cards as 3 columns and 3 rows (laptop) or vertical (smartphone)
  • Add new section Project Overview
    • Why PyGMT
      • Project Goals <- from README
      • Background <- from Getting Started/Overview
      • Support <- from README (maybe rename to Funding)
      • Related Projects <- from README
    • PyGMT Ecosystem <- from Reference Documentation
    • Citing PyGMT with G^3 paper and Zenodo BibTex <- from README
    • Conference Presentations <- from Getting Started/Overview
  • Reorder sidebar
    • Overview to Project Overview/Background, Conference Presentations (before Getting Started)
    • Minimum Supported Version to Getting Started (before Reference Documentation)
    • PyGMT Ecosystem to Project Overview (before Reference Documentation)
    • Changelog to Development (before Reference Documentation)

Make things look nice

  • Centering text on landing page
  • Vertical spaces between PyGMT logo and text on lading page
  • Add icons to the headings of the cards
  • Use buttons instead of bullet point lists

General things

  • Add PyGMT logo on landing page via Sphinx markdown instead of html
  • Links / URLs: In the README we use latest. This is fine for GitHub, but not optimal for the website as dev links to latest of the linked doc page not dev -> Rewrite text for docs, do not reuse from README
  • Rename section Getting Help and Contributing to Getting Help -> Where?
  • Sort tutorials on the External Resoures page by year (or date)
  • Add possiblity to link to main sections -> Needed?

Resources

@yvonnefroehlich
yvonnefroehlich marked this pull request as draft July 25, 2026 10:17
@yvonnefroehlich yvonnefroehlich self-assigned this Jul 26, 2026
@yvonnefroehlich yvonnefroehlich added documentation Improvements or additions to documentation maintenance Boring but important stuff for the core devs discussions Need more discussion before taking further actions labels Jul 26, 2026
@yvonnefroehlich yvonnefroehlich added this to the 0.20.0 milestone Jul 26, 2026
Comment thread doc/external_resources.md

:::::{grid} 1 2 2 3

::::{grid-item-card} 2024 AGU PREWS9: Mastering Geospatial Visualizations with GMT/PyGMT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps move the changes of this file into a separate PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I agree it is better to have this in a separate PR. My idea is to keep it here to make it easier to see how the changed card design, especially the coloring, works for the Extral Resources page. Currently I change the colors in style.css globally. Maybe (I have to figure out how) it is also possible to change it only for the cards on specific pages or files. However, I feel it would be good to keep things consistent and not introduce more blue hues.

Comment thread doc/conferences.md Outdated
@seisman

seisman commented Jul 27, 2026

Copy link
Copy Markdown
Member

The README has remained unchanged, and much of its content is directly included in the documentation. What do you think about moving the detailed content to the documentation, linking to the relevant pages from the README, and keeping the README concise? I.e., having README and the landing page fully decoupled.

For example,

  • the “Citing PyGMT” and “Minimum Supported Versions” sections could be replaced with links to their corresponding documentation pages.
  • "Project goals" can be changed to "Feature Highlights" or similar
  • "Support" can be fully removed from README

Some project README for reference:

@seisman

seisman commented Jul 27, 2026

Copy link
Copy Markdown
Member
  • Use same structur as side bar? One card per main sections or cards only for specific topics?

I prefer option (I). It currently seems somewhat redundant with the sidebar, but that redundancy will disappear if we switch to the PyData Sphinx Theme (#4745), which does not include the same sidebar.

Comment thread doc/index.md

overview.md
install.md
minversions.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should put minversions.md here. Very few users care about it.

Comment thread doc/index.md
intro/index.rst
```

```{toctree}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Project Overview" is really a good idea. What about adding it in a separate PR, so that this PR can be smaller for reviewing.

Comment thread doc/index.md

api/index.rst
techref/index.md
changes.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, I feel "Changelog" should stay in "Reference Documentation".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discussions Need more discussion before taking further actions documentation Improvements or additions to documentation maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants