# Docsify Open Course Starter Kit
[](https://docsify.js.org/)
[](https://github.com/hibbitts-design/docsify-open-course-starter-kit/blob/main/LICENSE)
> This is a starter kit to quickly create a Markdown-based open course site with the site generator [Docsify](https://docsify.js.org). Global navigation elements can be hidden for seamlessly embedding pages (i.e., into an LMS). Includes an optional "Edit this Page" link.
Docsify sites use client-side rendering, which means your content will not be indexed by search engines like Google, Bing, or DuckDuckGo.
📸 Docsify Open Course Screenshots
---

_Figure 1. Docsify Open Course Starter Kit. Explore a demo at [hibbitts-design.github.io/demo-docsify-open-course-starter-kit/](https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/)_
🚀 GitHub Pages Quickstart
---
**Pre-flight Checklist**
1. GitHub account
**Installation and Deployment**
1. Sign in to [GitHub](https://github.com) if you have not already done so
2. Tap **Use this template** on the source repository (upper-right green button) and then choose **Create a new repository**

3. Choose the name for your new repository to contain the copied site files and then tap **Create repository from template**

4. Go to **Settings** of your newly created repository, tap the **Pages** tab (on the left-hand side), choose **main branch**, then **docs folder** and finally tap the **Save** button (see more details in the [Docsify documentation](https://docsify.js.org/#/deploy?id=github-pages))

5. And you're done! (view your new site using the provided URL on the **Pages** tab - it can take up to 10 minutes for your site to be initially available)

Do you use GitLab? You can also use Docsify with [GitLab Pages](https://docsify.js.org/#/deploy?id=gitlab-pages)!
✏️ Editing Your Docsify Site Pages on GitHub
---
1. Go to the Docsify Markdown (.md) page in the `docs` folder of your repository you want to edit

2. Tap the **Pencil Icon** (top left-hand toolbar area) to start the editor

3. Scroll down to the bottom of the page and tap the **Commit changes** button to save your changes

[Learn more about creating pages in Docsify.](https://docsify.js.org/#/more-pages)
🔗 Activating the “Edit this Page” Link on Your Docsify Site
---
1. At the top-level of your GitHub Repository copy the URL

2. Tap on the **docs** folder

2. Tap on the **index.html** file

3. Tap the **Pencil Icon** (top left-hand toolbar area) to start the editor

4. Find the line `var gitLinkRepoURL = '';` and enter the URL of your own GitHub Repository between the two quotes (replace `github.com` with `github.dev` to use the GitHub.dev web-based editor currently in Beta) and then scroll down to the bottom of the page and tap the **Commit changes** button to save your changes

To remove the “Edit this Page” link on your Docsify site, restore the value of `gitLinkRepoURL` to `''`.
💻 Locally Editing Your Docsify Site Pages
---
**Editing Your Docsify Site Pages on Your Desktop**
1. Tap **Code** on your repository (upper-right green button)
2. Choose **Open Desktop** and follow the prompts, installing [GitHub Desktop](https://desktop.github.com/) if not already present
3. You will now be able to edit your Docsify site (in the `docs` folder) using the desktop editor of your choice (e.g. [Atom](https://atom.io/))
4. Use GitHub Desktop to push any changes to your repository.
[Learn more about using GitHub Desktop](https://help.github.com/en/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project).
You can also clone (i.e download) a copy of your repository to your computer and [run Docsify locally](https://docsify.js.org/#/quickstart) to preview your site. See the below video for details.
🧩 Embedding your Docsify Page Content into Other Systems
---

_Figure 2. Docsify Open Course Page Embedded into the Canvas LMS. Explore an example Canvas LMS course using Docsify Open Course pages for content at [https://canvas.sfu.ca/courses/44038/](https://canvas.sfu.ca/courses/44038)_
The optional `embedded` (all lowercase) URL parameter hides a site’s sidebar for seamlessly embedding Docsify page content within another platform such as Canvas LMS, Moodle, Microsoft Teams or being displayed in an existing or new Browser tab. The parameter `standalone` is supported as an alias for `embedded`.
To only display Docsify page content, add the following to a Docsify page URL:
`?embedded=true`
Example standard Docsify page:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources
Example Docsify page displaying only page content (i.e., no sidebar is shown):
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true
To optionally show a page Table of Contents (based on included Headers), use the following:
`?embedded=true&toc=true`
Example Docsify page displaying only page content:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true
Example Docsify page displaying only page content with a page Table of Contents included:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true&toc=true
To optionally override the hiding of the navbar when displaying only page content, use the following:
`?embedded=true&navbar=true`
Example Docsify page displaying only page content:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true
Example Docsify page displaying only page content with the navbar still displayed:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true&navbar=true
To optionally hide the 'Edit this Page' link, use the following:
`?embedded=true&hidegitlink=true`
Example Docsify page displaying only page content:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true
Example Docsify page displaying only page content with the 'Edit this Page' link hidden:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true&hidegitlink=true
To optionally show the footer ('_footer.md' file), use the following:
`?embedded=true&footer=true`
Example Docsify page without footer:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true
Example Docsify page with footer shown:
https://hibbitts-design.github.io/demo-docsify-open-course-starter-kit/#/resources?embedded=true&footer=true
🖼 Presenting your Docsify Page Content as Standalone Webpages
---
In addition to using URL parameters when embedding Docsify page content into other systems, it is possible to permanently display all pages as standalone, and to also always display a page Table of Contents.
**To Display all Pages as Standalone**
1. Open the `index.html` file for editing.
2. Locate the line `var standalone = false;` and change it to `var standalone = true;`.
3. Save the `index.html` file and reload site.
**To Display Page Table of Contents**
1. Open the `index.html` file for editing.
2. Locate the line `var ToC = false;` and change it to `var showToC = true;`.
3. Save the `index.html` file and reload site.
Please note a page must have a series of Headings (#, ##, ###) for the Table of Contents to be displayed correctly.
❛❜ Setting the Name of your Docsify Site
---
1. Open the `index.html` file for editing.
2. Locate the line `
```javascript
function test() {
console.log("Hello world!");
}
```
Which would then appear as:
```javascript
function test() {
console.log("Hello world!");
}
```
**Displaying Images in a Grid**
3 or more images can be transformed into a responsive grid gallery by including them in lists. For example:
```markdown
- 
- 
- 
```
🧰 Useful Markdown CSS Classes
---
`accordion`
```html
```
`row` & `column`
```html