Skip to content

Commit 5a13b5c

Browse files
Merge pull request #84 from OpenGeoMetadata/83-update-readme
Update README.md
2 parents 2aacd6d + 10996ba commit 5a13b5c

1 file changed

Lines changed: 52 additions & 27 deletions

File tree

README.md

Lines changed: 52 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ This is the working branch containing the content for the site using Markdown.
3434
* **mkdocs.yml**: the configuration file that identifies the theme, the extensions, and the navigation
3535
* **docs** folder
3636
* Markdown documents: The content for the site. These can all live in the same directory and are organized in the public navigation menu in the nav section of **mkdocs.yml**.
37-
* `/ogm-aardvark`: a subfolder with markdown files for each element in the Aardvark schema
38-
* /`images : JPGs, PNGs, and other image files
37+
* `/ogm-aardvark`: a subfolder with CSV files for each element in the Aardvark schema
38+
* /`images` : JPGs, PNGs, and other image files
3939
* `/javascripts/tablesort.js`: the javascript function that allows users to sort tables online
4040
* `/stylesheets/extra.css` : a CSS file that can define colors, fonts, and other customizations for the site
41-
* `/tables` : CSV files for any information to be included in tables
41+
* `/tables` : CSV files for any general information to be displayed as tables
4242

4343

4444
### gh-pages branch
@@ -54,63 +54,88 @@ This is the published branch containing the HTML code for the site. (We do **not
5454

5555
## Updating the OpenGeoMetadata website
5656

57-
Since this site is written with Markdown files, the minimum requirement to contribute is to just edit or submit new Markdown files. However, MkDocs is relatively simple to install and run locally. This allows you to preview changes locally before submitting them. To get started, visit the Material for[ MkDocs Getting Started page](https://squidfunk.github.io/mkdocs-material/getting-started/) and choose an installation method.
57+
Since this site is written with Markdown files, the minimum requirement to contribute is to just edit or submit new Markdown files. However, MkDocs is relatively simple to install and run locally. This allows you to preview changes locally before submitting them.
5858

59-
:triangular_flag_on_post: *This workflow uses the [MkDocs deploy technique.](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-mkdocs) We may want to consider using [GitHub actions](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions) instead.*
6059

61-
### Workflow overview
60+
To get started, follow the steps below. It may also be helpful to visit the Material for[ MkDocs Getting Started page](https://squidfunk.github.io/mkdocs-material/getting-started/) and for reference.
6261

63-
![](docs/images/github.png)
62+
### Install Material for MkDocs
6463

65-
:warning: This workflow may vary from how you collaborated on other GitHub Pages sites, because we don't do Pull Requests to the branch that is actually being published (gh-pages). The site is always published from a command line interfaces using `mkdocs gh-deploy`.
64+
1. Open the Terminal and type the following:
6665

67-
MkDocs offers two commands to run in Terminal/Command Line for simplifying the process of editing and publishing GitHub pages:
66+
`pip install mkdocs-material`
6867

69-
* `mkdocs serve`: this will start a local server so you can preview the site as you build it.
68+
This command will install all the necessary modules for the mkdocs platform and the Material theme together.
7069

71-
* `mkdocs gh-deploy`: this will convert all of the Markdown documents to HTML and publish them to a branch called **gh-pages**.
7270

71+
2. Next, install the Table Reader plugin:
7372

73+
`pip install mkdocs-table-reader-plugin`
7474

75-
### Workflow steps
75+
This plugin converts the CSV tables to be rendered as HTML in the website.
7676

77-
Contributor:
77+
### Edit the website
7878

79-
1. Update your local instance of the OpenGeoMetadata repository
80-
2. Make a new branch and switch to it
81-
3. Edit the Markdown files
82-
4. Preview the site locally using `mkdocs serve`
83-
5. Commit your changes
84-
6. Publish your branch
85-
7. Open a Pull Request to the main branch
79+
1. Clone or fork the opengeometadata.github.io repository
8680

87-
Publisher:
81+
2. Make a new branch
8882

89-
1. Accept Pull Request and merge changes to the main branch
90-
2. Update your local instance of the OpenGeoMetadata repository
91-
3. Stay or switch to the MAIN branch
92-
4. Preview the site locally using `mkdocs serve`
93-
5. Publish to GitHub with `mkdocs gh-deploy`
83+
3. Change into the opengeometadata.github.io directory and type:
84+
85+
`mkdocs serve`
9486

87+
This will start a local server so you can preview the site as you build it. You will see text in the Terminal that looks something like this:
9588

89+
```
90+
INFO - Documentation built in 4.15 seconds
9691
92+
INFO - [14:43:24] Watching paths for changes: 'docs', 'mkdocs.yml'
9793
94+
INFO - [14:43:24] Serving on http://127.0.0.1:8000/
9895
96+
INFO - [14:43:31] Browser connected: http://127.0.0.1:8000/
97+
```
98+
4. In a browser, open the locally hosted site at http://127.0.0.1:8000/ (or whatever your Terminal shows)
9999

100+
5. Edit the markdown files and preview them in your browser.
100101

102+
6. When you are ready to publish the changes, commit them locally using GitHub Desktop or a Terminal command.
101103

104+
7. Publish the branch and open a pull request to the Main branch.
102105

103106

107+
### Workflow steps overview
104108

109+
Contributor:
105110

111+
1. Clone or update your local instance of the OpenGeoMetadata.github.io repository
112+
2. Make a new branch and switch to it
113+
3. Edit the Markdown files
114+
4. Preview the site locally using `mkdocs serve`
115+
5. Commit your changes
116+
6. Publish your branch
117+
7. Open a Pull Request to the main branch
106118

119+
Publisher:
107120

121+
1. Accept Pull Request and merge changes to the main branch
122+
2. GitHub Actions will automatically push the changes to the gh-pages branch
108123

109124

125+
### Differences from local server previews and public view
110126

127+
As of April 2023, the opengeometadata.github.io site is being published via the sponsored version of Material for MkDocs, known as "[Insiders](https://squidfunk.github.io/mkdocs-material/insiders/)." This enables a few extra features that you will only see online, not in your local instance, including:
111128

129+
* breadcrumbs
130+
* emojis on the tabs
131+
* admonitions
112132

133+
We will reassess this in a few months to determine if it is a viable model going forward.
113134

114135
------
115136

116-
All questions about this repository and contributing to it or other elements of the OpenGeoMetadata project can be directed to geoblacklight-working-group@googlegroups.com.
137+
Questions about this repository or other elements of the OpenGeoMetadata project?
138+
139+
Submit metadata related issues here: https://github.com/OpenGeoMetadata/metadata-issues/issues
140+
141+
Report bugs and typos on the website itself here: https://github.com/OpenGeoMetadata/opengeometadata.github.io/issues

0 commit comments

Comments
 (0)