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
+35-4Lines changed: 35 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ Feel free to use this template by clicking on `Use this template` button.
11
11
- Ready to use template
12
12
- Stand up a static website in seconds
13
13
- Uses material-UI plugin to follow standard UI elements
14
-
- Builtin 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
16
16
17
17
### Tips
18
18
@@ -21,9 +21,40 @@ Feel free to use this template by clicking on `Use this template` button.
21
21
- Previous: `p`
22
22
- Next: `n`
23
23
24
-
## Installation Instructions
24
+
## How to use the template
25
25
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.
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.
Copy file name to clipboardExpand all lines: help/hosting-site.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Hosting Site built
2
2
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.
4
4
5
5
However, in case there is a need to do it manually, below are a few options:
0 commit comments