Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit d25f9de

Browse files
committed
readme and contribution update
1 parent b906788 commit d25f9de

File tree

2 files changed

+114
-1
lines changed

2 files changed

+114
-1
lines changed

CONTRIBUTION.md

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Contributing
2+
3+
Thanks for contributing to our FlexiHPC User guides repository. Below are ways you can help make the these user guides better.
4+
5+
The easiest way for you to help us is by raising an issue, which will require a GitHub account. For amendments to the documentation, you will need to be familiar with general Git concepts if you'd like to commit substantial changes or even whole new user guides, you will be required to set up the preview environment.
6+
7+
## Raise an issue
8+
The easiest way to help improve our user guides is by raising an issue in our repository at https://github.com/nesi/flexi-docs.
9+
10+
If you find an issues that needs to be resolved, please have a look through the list of existing issues to see whether your issues hasn't already been reported. If it has, or a closely related issues exists, please add your comments to the existing issue.
11+
12+
If your issue isn't already listed, then create a New Issue. Provide details of your suggestion and include the user guide and url to which your suggestion applies. One of our team members will review your suggestion and resolve it if they can. They may contact you if they need some more clarification.
13+
14+
## Making changes
15+
16+
If you would like to make a minor or substantial contribution, you'll need to ensure you have Git and python installed.
17+
18+
## Checking out the code
19+
For minor or substantial edits, you will need to clone the repsitory of the documentation source code. This can be done using the Git command:
20+
```sh
21+
git clone https://github.com/nesi/flexi-docs.git
22+
```
23+
You're now ready to make changes.
24+
25+
### Substantial edits and new user guides
26+
27+
To contribute substantial edits or new user guides, we recommend that you [set up a local development environment](#setting-up-a-local-development-environment), so you can visualise and fine tune your work before you submit it for review.
28+
You'll need some of your `git` skills with this.
29+
30+
- Clone the repo to your local computer using `git clone`.
31+
- Step through the setup routine ([below](#setting-up-a-local-development-environment)) to set up your computer for local previews of your edits.
32+
- Make the edits using your favourite markdown editor.
33+
- Commit your changes to your branch.
34+
- Preview your changes using the local preview server that you set up above.
35+
- When you are happy with your edits or additions, commit your changes to the github repo.
36+
- Create a PR from your branch into `main` on the github site
37+
38+
Please be prepared to answer questions about your edits and make additional commits.
39+
40+
### Setting up a local development environment
41+
42+
Note for windows users, this process will be much easier if you set up [Windows Subsystem for Linux (WSL)](https://docs.microsoft.com/en-us/windows/wsl/install), then the commands below will work within the WSL environment.
43+
44+
### MkDocs Installation
45+
46+
Install mkdocs
47+
```sh
48+
python3 -m pip install mkdocs
49+
```
50+
51+
Install theme and addons
52+
```sh
53+
pip install mkdocs-material mkdocs-glightbox mkdocs-literate-nav neoteroi-mkdocs
54+
```
55+
56+
Once the above items are installed you can then serve the files locally with the below command ensuring you are in the root of the cloned repo
57+
58+
```sh
59+
mkdocs serve
60+
```
61+
62+
Then browse to http://localhost:8000/
63+
64+
### Branch the code
65+
66+
To commit your work for review you will need to branch from `main` and into your own branch.
67+
68+
Using the `git` command below and replacing `BRANCH_NAME` with a name that is easy to understand.
69+
70+
```
71+
git branch BRANCH_NAME
72+
```
73+
74+
**Example:** `git branch 20230815-USER_NAME-Update_Managing_Images`
75+
76+
With the code branched and MkDocs running you should be free to alter and create.
77+
78+
### Markdown styles and references
79+
80+
All markdown references can be found at the [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/reference/) reference page.

README.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# flexi-docs
1+
# NeSI FlexiHPC User Guide Documentation
2+
3+
This is the content that hosts the site https://nesi.github.io/flexi-docs/
4+
5+
## File layout
6+
7+
### docs/
8+
9+
Location of markdown docs. File structure determines categories and sections. A section or category can be replaced by an index.md file, this will replace the default nav with a page.
10+
11+
### docs/assets
12+
13+
This is broken down into a few things, treat this as site assets like `css`, `images` or `files(pdfs etc)`
14+
15+
16+
### docs/base_folder_name
17+
18+
This is normally the base folder structure that houses the markdown documents for that subject, example would be `docs/user-guides` houses all the user guides for flexi
19+
20+
### summary and index
21+
22+
These 2 files are used as the following
23+
24+
`index.md` is the base page for that section or group
25+
26+
`summary.md` is the nav structure for that section or group, if not supplied then the site will tile all markdown docs out
27+
28+
## Theme
29+
30+
https://squidfunk.github.io/mkdocs-material/
31+
32+
## Contributing
33+
34+
We welcome contributions to our FlexiHPC User guides. Please read [CONTRIBUTING.md](CONTRIBUTION.md)

0 commit comments

Comments
 (0)