Skip to content

Commit 07f134e

Browse files
committed
docs update
1 parent 32d324a commit 07f134e

File tree

8 files changed

+80
-15
lines changed

8 files changed

+80
-15
lines changed

README.md

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Feel free to use this template by clicking on `Use this template` button.
1111
- Ready to use template
1212
- Stand up a static website in seconds
1313
- Uses material-UI plugin to follow standard UI elements
14-
- Built in search support
15-
- GitHub workflow setup already to deploy to Gh-pages
14+
- Built-in search support
15+
- Automatic deployment to gh-pages using GitHub workflow
1616

1717
### Tips
1818

@@ -21,9 +21,40 @@ Feel free to use this template by clicking on `Use this template` button.
2121
- Previous: `p`
2222
- Next: `n`
2323

24-
## Installation Instructions
24+
## How to use the template
2525

26-
Go [here](./docs/local-development.md) for instructions
26+
### Creating a repo
27+
28+
Click on `Use this template` green button from the [repository](https://github.com/goel4ever/mkdocs-template) to create your own repository in a desired github account.
29+
30+
### Updating configuration
31+
32+
Now, update the following fields in `mkdocs.yml` file
33+
34+
- `repo_url` - path to your new repo
35+
- `site_url` - path where GitHub will deploy your new site, or your domain if you have one
36+
- `homepage` - path where GitHub will deploy your new site, or your domain if you have one
37+
- `property` - if you need analytics, you can replace the google analytics tag for your repo with your own. Otherwise remove the `analytics` section completely
38+
39+
### Files Cleanup
40+
41+
- `docs` folder is meant to provide some guidelines for contributing to the project. It is unrelated to newer projects, however feel free to use it if needed.
42+
- `help` folder is meant to help you understand how to best use the template, and provide help if you feel stuck somewhere. If you don't need it, feel free to get rid of it, since you can always refer back to the original template.
43+
- Update `README.md` file with your own content, based on what you intend to document
44+
45+
### Optional changes
46+
47+
1. You can update your new site's icon by replacing the image `logo.png` from `/src/assets/images`. As of now, we only use `logo.png`, feel free to get rid of other files.
48+
2. Add your website's url on your github repository for easy access
49+
3. Add tags on your github repository if interested
50+
51+
### Deploy the website
52+
53+
Nothing needs to be done here. Your GitHub workflow will take care of pushing the changes out to gh-pages automatically once you commit your new changes
54+
55+
## Help
56+
57+
There is good documentation [here](./docs/local-development.md) for tasks that may be helpful. Feel free to check it out.
2758

2859
## Contribution
2960

docs/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
# Template Documentation
22

3-
Documentation for specific needs
3+
Yet to update:
44

5-
1. [Local Development](local-development.md)
6-
2. [Hosting the site](./hosting-site.md)
7-
3. [Choosing Theme](choosing-theme.md)
8-
4. [Starting a new project](./new-project.md)
9-
5. [Contributing](./CONTRIBUTING.md)
5+
1. [Contributing](./CONTRIBUTING.md)
106

117
## References
128

13-
- MkDocs [official site](https://www.mkdocs.org/getting-started/)
14-
- [Writing your docs](https://www.mkdocs.org/user-guide/writing-your-docs/)
15-
- MkDocs [Alternatives](https://squidfunk.github.io/mkdocs-material/alternatives/)
16-
- [Deploying the docs](https://www.mkdocs.org/user-guide/deploying-your-docs/)
179
- GitHub [Guidelines](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file)

help/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Help
2+
3+
Helpful documents for specific needs:
4+
5+
1. [Local Development](local-development.md)
6+
2. [Adding Tags](./adding-tags.md)
7+
3. [Hosting the site](./hosting-site.md)
8+
4. [Choosing Theme](choosing-theme.md)
9+
5. [Starting a new project](./new-project.md)
10+
11+
## References
12+
13+
- MkDocs [official site](https://www.mkdocs.org/getting-started/)
14+
- [Writing your docs](https://www.mkdocs.org/user-guide/writing-your-docs/)
15+
- [Deploying the docs](https://www.mkdocs.org/user-guide/deploying-your-docs/)
16+
- MkDocs [Alternatives](https://squidfunk.github.io/mkdocs-material/alternatives/)

help/adding-tags.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Adding Tags
2+
3+
Tags help group content, esp when using search functionality. Feel free to add some on desired pages.
4+
5+
## How do I add a tag?
6+
7+
Add the tags in desired `*.md` file in the following format:
8+
9+
```
10+
---
11+
tags:
12+
- mkdocs
13+
- template
14+
- python
15+
---
16+
```
17+
18+
## How do I know it's working?
19+
20+
As an example, go [here](https://goel4ever.github.io/mkdocs-template/). Type `mkdocs` in the search bar. You'll see the tags above show up right below document recommendation.
21+
22+
Similaryly, go to your website and search for the tags you added.
23+
24+
## Can I search the docs by tag?
25+
26+
Unfortunately, not at the moment. I haven't had a chance to figure that out yet. Keep an eye on updates coming to this template repository. Alternatively feel free to contribute by creating a PR for it.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Hosting Site built
22

3-
This repository has GitHub workflow setup, which will automatically upload changes to GitHub pages on merge to `main` branch. No additional action needed.
3+
> Note: This repository has GitHub workflow setup, which will automatically upload changes to GitHub pages on merge to `main` branch. No additional action needed.
44
55
However, in case there is a need to do it manually, below are a few options:
66

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)