Skip to content
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

Redesign the team gallery using sphinx-design's card directive #1937

Merged
merged 8 commits into from
Jun 2, 2022

Conversation

seisman
Copy link
Member

@seisman seisman commented May 31, 2022

Description of proposed changes

Use sphinx-design's card directive instead of the unreadable raw HTML codes added in #1308.

The card directive can also be used in #1936.

@seisman seisman added this to the 0.7.0 milestone May 31, 2022
@seisman seisman added the documentation Improvements or additions to documentation label May 31, 2022
doc/team.md Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
</div>
</div>
```
:::::{grid} 2 3 3 4
Copy link
Member

Choose a reason for hiding this comment

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

Is this for the margins? Feel like the vertical spacing between cards could be increased a bit. Right now there's not much of a gap.
image
compared to https://www.pygmt.org/v0.6.1/team.html:

image

Copy link
Member Author

Choose a reason for hiding this comment

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

:::::{grid} 2 3 3 4

These four numbers are the number of columns for extra-small, small, medium and large screens.

doc/conf.py Outdated Show resolved Hide resolved
doc/conf.py Show resolved Hide resolved
Copy link
Member

@maxrjones maxrjones left a comment

Choose a reason for hiding this comment

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

Thanks @seisman, so much simpler! One suggestion is to use the footer option so that the founder/maintainer labels are separated from the GitHub username (example provided as an in-line comment)

doc/team.md Outdated
Comment on lines 76 to 77
Maintainer
[@weiji14](https://github.com/weiji14)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Maintainer
[@weiji14](https://github.com/weiji14)
[@weiji14](https://github.com/weiji14)
+++
Maintainer
Before After

|
image | image |

Copy link
Member Author

Choose a reason for hiding this comment

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

Good suggestion! I've used the footer option for labels and also use sphinx-design's badge directive to highlight different roles.

image

Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
@seisman
Copy link
Member Author

seisman commented Jun 1, 2022

Here is the latest screenshot:
image

Copy link
Member

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Very nice, the badges are a nice touch!

@weiji14 weiji14 added the final review call This PR requires final review and approval from a second reviewer label Jun 1, 2022
Copy link
Member

@maxrjones maxrjones left a comment

Choose a reason for hiding this comment

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

Very nice!

@seisman seisman merged commit 31ccd25 into main Jun 2, 2022
@seisman seisman deleted the redeisgn-team-gallry branch June 2, 2022 05:06
@seisman seisman removed the final review call This PR requires final review and approval from a second reviewer label Jun 2, 2022
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…icMappingTools#1937)

Co-authored-by: Max Jones <meghanj@alum.mit.edu>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants