Skip to content

Commit 9efe317

Browse files
Meghan Jonescore-man
andauthored
Specify header sizes in style.css and remove bold formatting from contributing.md headers (#1385)
Co-authored-by: Yao Jiayuan <[email protected]>
1 parent 786139f commit 9efe317

File tree

2 files changed

+45
-32
lines changed

2 files changed

+45
-32
lines changed

doc/_static/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,23 @@ h1, h2, h3, h4 {
1212
font-family: "Atkinson Hyperlegible", sans-serif;
1313
}
1414

15+
/* Set the header font sizes */
1516
h1 {
1617
font-size: 200%;
1718
}
1819

20+
h2 {
21+
font-size: 185%;
22+
}
23+
24+
h3 {
25+
font-size: 150%;
26+
}
27+
28+
h4 {
29+
font-size: 130%;
30+
}
31+
1932
p {
2033
font-size: 1.05em;
2134
}

doc/contributing.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ The goal is to maintain a diverse community that's pleasant for everyone.
1010
[Code of Conduct](https://github.com/GenericMappingTools/pygmt/blob/master/CODE_OF_CONDUCT.md)
1111
and we encourage all to read it carefully.
1212

13-
## **Ways to Contribute**
13+
## Ways to Contribute
1414

15-
### **Ways to Contribute Documentation and/or Code**
15+
### Ways to Contribute Documentation and/or Code
1616

1717
* Tackle any issue that you wish! Some issues are labeled as **"good first issues"** to
1818
indicate that they are beginner friendly, meaning that they don't require extensive
@@ -22,7 +22,7 @@ and we encourage all to read it carefully.
2222
* Contribute code! This can be code that you already have and it doesn't need to be
2323
perfect! We will help you clean things up, test it, etc.
2424

25-
### **Ways to Contribute Feedback**
25+
### Ways to Contribute Feedback
2626

2727
* Provide feedback about how we can improve the project or about your particular use
2828
case. Open an [issue](https://github.com/GenericMappingTools/pygmt/issues) with
@@ -31,17 +31,17 @@ and we encourage all to read it carefully.
3131
* Help triage issues, or give a "thumbs up" on issues that others reported which are
3232
relevant to you.
3333

34-
### **Ways to Contribute to Community Building**
34+
### Ways to Contribute to Community Building
3535

3636
* Participate and answer questions on the [PyGMT forum Q&A](https://forum.generic-mapping-tools.org/c/questions/pygmt-q-a/11).
3737
* Participate in discussions at the quarterly PyGMT Community Meetings, which are
3838
announced on the [forum governance page](https://forum.generic-mapping-tools.org/c/governance/9).
3939
* Cite PyGMT when using the project.
4040
* Spread the word about PyGMT or star the project!
4141

42-
## **Providing Feedback**
42+
## Providing Feedback
4343

44-
### **Reporting a Bug**
44+
### Reporting a Bug
4545

4646
* Find the [*Issues*](https://github.com/GenericMappingTools/pygmt/issues) tab on the
4747
top of the GitHub repository and click *New Issue*.
@@ -50,7 +50,7 @@ top of the GitHub repository and click *New Issue*.
5050
* After submitting your bug report, try to answer any follow up questions about the bug
5151
as best as you can.
5252

53-
### **Submitting a Feature Request**
53+
### Submitting a Feature Request
5454

5555
* Find the [*Issues*](https://github.com/GenericMappingTools/pygmt/issues) tab on the
5656
top of the GitHub repository and click *New Issue*.
@@ -59,7 +59,7 @@ top of the GitHub repository and click *New Issue*.
5959
* After submitting your feature request, try to answer any follow up questions as best
6060
as you can.
6161

62-
### **Submitting General Comments/Questions**
62+
### Submitting General Comments/Questions
6363

6464
There are several pages on the [Community Forum](https://forum.generic-mapping-tools.org/)
6565
where you can submit general comments and/or questions:
@@ -71,9 +71,9 @@ where you can submit general comments and/or questions:
7171
* To share your work, select *New Topic* from the
7272
[Showcase Page](https://forum.generic-mapping-tools.org/c/Sow-your-nice-example-script/10).
7373

74-
## **General Guidelines**
74+
## General Guidelines
7575

76-
### **Resources for New Contributors**
76+
### Resources for New Contributors
7777

7878
Please take a look at these resources to learn about Git and pull requests (don't
7979
hesitate to [ask questions](#getting-help)):
@@ -82,13 +82,13 @@ hesitate to [ask questions](#getting-help)):
8282
* [Git Workflow Tutorial](http://www.asmeurer.com/git-workflow/) by Aaron Meurer.
8383
* [How to Contribute to an Open Source Project on GitHub](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
8484

85-
### **Getting Help**
85+
### Getting Help
8686

8787
Discussion often happens on GitHub issues and pull requests. In addition, there is a
8888
[Discourse forum](https://forum.generic-mapping-tools.org/c/questions/pygmt-q-a) for
8989
the project where you can ask questions.
9090

91-
### **Pull Request Workflow**
91+
### Pull Request Workflow
9292

9393
We follow the [git pull request workflow](http://www.asmeurer.com/git-workflow)
9494
to make changes to our codebase. Every change made goes through a pull request, even
@@ -97,7 +97,7 @@ our own, so that our
9797
services have a chance to check that the code is up to standards and passes all
9898
our tests. This way, the *master* branch is always stable.
9999

100-
#### **General Guidelines for Making a Pull Request (PR):**
100+
#### General Guidelines for Making a Pull Request (PR):
101101

102102
* What should be included in a PR
103103
- Have a quick look at the titles of all the existing issues first. If there
@@ -127,7 +127,7 @@ our tests. This way, the *master* branch is always stable.
127127
- Be aware that the pull request review process is not immediate, and is
128128
generally proportional to the size of the pull request.
129129

130-
#### **General Process for Pull Request Review:**
130+
#### General Process for Pull Request Review:
131131

132132
After you've submitted a pull request, you should expect to hear at least a
133133
comment within a couple of days. We may suggest some changes, improvements or
@@ -157,7 +157,7 @@ Try to get them all passing (green).
157157
If you have any trouble, leave a comment in the PR or
158158
[get in touch](#how-can-i-talk-to-you).
159159

160-
## **Setting up your Environment**
160+
## Setting up your Environment
161161

162162
These steps for setting up your environment are necessary for
163163
[editing the documentation locally](#editing-the-documentation-locally) and
@@ -203,9 +203,9 @@ This installs your project in *editable* mode, meaning that changes made to the
203203
code will be available when you import the package (even if you're on a different
204204
directory).
205205

206-
## **Contributing Documentation**
206+
## Contributing Documentation
207207

208-
### **PyGMT Documentation Overview**
208+
### PyGMT Documentation Overview
209209

210210
There are four main components to PyGMT's documentation:
211211

@@ -235,7 +235,7 @@ There are two primary ways to edit the PyGMT documentation:
235235
In order to build the documentation locally, you first need to
236236
[set up your environment](#setting-up-your-environment).
237237

238-
### **Editing the Documentation on GitHub**
238+
### Editing the Documentation on GitHub
239239

240240
If you're browsing the documentation and notice a typo or something that could be
241241
improved, please consider letting us know by [creating an issue](#reporting-a-bug) or
@@ -268,7 +268,7 @@ Alternatively, you can make the changes offline to the files in the `doc` folder
268268
example scripts. See [editing the documentation locally](#editing-the-documentation-locally)
269269
for instructions.
270270

271-
### **Editing the Documentation Locally**
271+
### Editing the Documentation Locally
272272

273273
For more extensive changes, you can edit the documentation in your cloned repository
274274
and build the documentation to preview changes before submitting a pull request. First,
@@ -284,7 +284,7 @@ This will build the HTML files in `doc/_build/html`.
284284
Open `doc/_build/html/index.html` in your browser to view the pages. Follow the
285285
[pull request workflow](#pull-request-workflow) to submit your changes for review.
286286

287-
### **Contributing Gallery Plots**
287+
### Contributing Gallery Plots
288288

289289
The gallery and tutorials are managed by
290290
[sphinx-gallery](https://sphinx-gallery.readthedocs.io/).
@@ -315,7 +315,7 @@ General guidelines for making a good gallery plot:
315315
documentation.
316316
* SI units should be used in the example code for gallery plots.
317317

318-
### **Contributing Tutorials**
318+
### Contributing Tutorials
319319

320320
The tutorials (the User Guide in the docs) are also built by sphinx-gallery from the
321321
`.py` files in the `examples/tutorials` folder of the repository. To add a new tutorial:
@@ -343,7 +343,7 @@ Guidelines for a good tutorial:
343343
Note that the `Figure.show()` function needs to be called for a plot to be inserted into
344344
the documentation.
345345

346-
### **Editing the API Documentation**
346+
### Editing the API Documentation
347347

348348
The API documentation is built from the docstrings in the Python `*.py` files under
349349
the `pygmt/src/` and `/pygmt/datasets/` folders. **All docstrings** should follow the
@@ -355,7 +355,7 @@ While the maximum line length for code is automatically set by Black, docstrings
355355
must be formatted manually. To play nicely with Jupyter and IPython, **keep docstrings
356356
limited to 79 characters** per line.
357357

358-
### **Standards for Example Code**
358+
### Standards for Example Code
359359

360360
When editing documentation, use the following standards to demonstrate the example code:
361361

@@ -373,7 +373,7 @@ When editing documentation, use the following standards to demonstrate the examp
373373
with [ ] (square brackers) with the prefix "Default is". Example: [Default is
374374
**p**].
375375

376-
### **Cross-referencing with Sphinx**
376+
### Cross-referencing with Sphinx
377377

378378
The API reference is manually assembled in `doc/api/index.rst`.
379379
The *autodoc* sphinx extension will automatically create pages for each
@@ -410,15 +410,15 @@ For GMT configuration parameters, an example is
410410
Sphinx will create a link to the automatically generated page for that
411411
function/class/module.
412412

413-
## **Contributing Code**
413+
## Contributing Code
414414

415-
### **PyGMT Code Overview**
415+
### PyGMT Code Overview
416416

417417
The source code for PyGMT is located in the `pygmt/` directory. When contributing
418418
code, be sure to follow the general guidelines in the
419419
[pull request workflow](#pull-request-workflow) section.
420420

421-
### **Code Style**
421+
### Code Style
422422

423423
We use some tools to to format the code so we don't have to think about it:
424424

@@ -459,7 +459,7 @@ make check # Runs black, blackdoc, docformatter, flake8 and isort (in check mo
459459
make lint # Runs pylint, which is a bit slower
460460
```
461461

462-
### **Testing your Code**
462+
### Testing your Code
463463

464464
Automated testing helps ensure that our code is as free of bugs as it can be.
465465
It also lets us know immediately if a change we make breaks any other part of the code.
@@ -503,15 +503,15 @@ or run tests which contain names that match a specific keyword expression:
503503

504504
pytest -k KEYWORD pygmt/tests
505505

506-
### **Testing Plots**
506+
### Testing Plots
507507

508508
Writing an image-based test is only slightly more difficult than a simple test.
509509
The main consideration is that you must specify the "baseline" or reference
510510
image, and compare it with a "generated" or test image. This is handled using
511511
the *decorator* functions `@pytest.mark.mpl_image_compare` and `@check_figures_equal`
512512
whose usage are further described below.
513513

514-
#### **Using mpl_image_compare**
514+
#### Using mpl_image_compare
515515

516516
> **This is the preferred way to test plots whenever possible.**
517517
@@ -553,7 +553,7 @@ Don't forget to commit the baseline image as well!
553553
The images should be pushed up into a remote repository using `dvc` (instead of
554554
`git`) as will be explained in the next section.
555555

556-
#### **Using Data Version Control ([dvc](https://dvc.org)) to Manage Test Images**
556+
#### Using Data Version Control ([dvc](https://dvc.org)) to Manage Test Images
557557

558558
As the baseline images are quite large blob files that can change often (e.g.
559559
with new GMT versions), it is not ideal to store them in `git` (which is meant
@@ -620,7 +620,7 @@ summarized as follows:
620620
git push
621621
dvc push
622622

623-
#### **Using check_figures_equal**
623+
#### Using check_figures_equal
624624

625625
This approach draws the same figure using two different methods (the reference
626626
method and the tested method), and checks that both of them are the same.

0 commit comments

Comments
 (0)