You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52-27Lines changed: 52 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ This is the working branch containing the content for the site using Markdown.
34
34
***mkdocs.yml**: the configuration file that identifies the theme, the extensions, and the navigation
35
35
***docs** folder
36
36
* 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
39
39
* `/javascripts/tablesort.js`: the javascript function that allows users to sort tables online
40
40
* `/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
42
42
43
43
44
44
### gh-pages branch
@@ -54,63 +54,88 @@ This is the published branch containing the HTML code for the site. (We do **not
54
54
55
55
## Updating the OpenGeoMetadata website
56
56
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.
58
58
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.*
60
59
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.
62
61
63
-

62
+
### Install Material for MkDocs
64
63
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:
66
65
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`
68
67
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.
70
69
71
-
*`mkdocs gh-deploy`: this will convert all of the Markdown documents to HTML and publish them to a branch called **gh-pages**.
72
70
71
+
2. Next, install the Table Reader plugin:
73
72
73
+
`pip install mkdocs-table-reader-plugin`
74
74
75
-
### Workflow steps
75
+
This plugin converts the CSV tables to be rendered as HTML in the website.
76
76
77
-
Contributor:
77
+
### Edit the website
78
78
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
86
80
87
-
Publisher:
81
+
2. Make a new branch
88
82
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`
94
86
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:
95
88
89
+
```
90
+
INFO - Documentation built in 4.15 seconds
96
91
92
+
INFO - [14:43:24] Watching paths for changes: 'docs', 'mkdocs.yml'
97
93
94
+
INFO - [14:43:24] Serving on http://127.0.0.1:8000/
98
95
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)
99
99
100
+
5. Edit the markdown files and preview them in your browser.
100
101
102
+
6. When you are ready to publish the changes, commit them locally using GitHub Desktop or a Terminal command.
101
103
104
+
7. Publish the branch and open a pull request to the Main branch.
102
105
103
106
107
+
### Workflow steps overview
104
108
109
+
Contributor:
105
110
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
106
118
119
+
Publisher:
107
120
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
108
123
109
124
125
+
### Differences from local server previews and public view
110
126
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:
111
128
129
+
* breadcrumbs
130
+
* emojis on the tabs
131
+
* admonitions
112
132
133
+
We will reassess this in a few months to determine if it is a viable model going forward.
113
134
114
135
------
115
136
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