| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project is a basic template for creating a documentation site using docsify and hosting it on Github Pages. Docsify is a lightweight documentation framework that uses markdown files to generate a documentation site. It also has a rich community of plugins that can extend and customize the framework. Since sorting through all the plugins can be a bit overwhelming, this project has curated and integrated the most useful plugins to get you started.
There are two methods for utilizing this repository as a template for your own documentation site. The first method is to use the Github template feature. This will create a new repository in your account that is a copy of this repository. This method is very convenient and well-suited for a standalone documentation repository.
The second method is to add this repository as a remote to your existing repository. This will allow you to pull in changes from this repository to a branch in your repository. This method allows you to keep your documentation in the same repository as your code. This method is well-suited for a documentation site that is part of a larger project.
Use this method if you are creating a new standalone documentation repository.
Once created, you can clone your new repository and start editing the markdown files in the docs folder. You can also customize the site by editing the index.html file.
Use this method if you want to add a documentation site to an existing repository.
git remote add upstream-template git@github.com:tspauld98/basic-docsify-gh-template.gitgit fetch upstream-templategit checkout -b upstream-template-main --track upstream-template/maingit checkout maingit checkout upstream-template-main -- docsgit commit -am "Add docs folder from upstream-template"Note: You may need to resolve conflicts before you can commit the changes to the main branch.
Once you have the contents from the template repository in your existing repository, you can start editing the markdown files in the docs folder. You can also customize the site by editing the index.html file to make the site your own.
Make sure the following software is installed on your system:
This process assumes you have the prerequisites installed on your system and that you have used one of the methods above to create your documentation repository. It also assumes that you have cloned the repository to your local system.
docsify serve docsWhen you push the changes to the remote repository, Github will automatically deploy the documentation site to Github Pages if you have configured Github Pages for your repository. You can view the deployed site by navigating to https://<your-github-username>.github.io/<your-repository-name> once the Github deployment process has completed.
If you want to add or disable features, you will need to modify the index.html file. The index.html file is the entry point for the documentation site. It is a single page application that uses the markdown files in the docs folder to render the documentation site dynamically. All the plugins currently configured have been included locally in the _vendors folder. If you add plugins, you will need to add them to the _vendors folder and update the index.html file to include them or configure them to load them from a CDN. The _media folder contains images and other media that are used in the documentation site. You can add your own media to this folder including custom styles, custom Javascript code, images, videos, and audio files.
At a minimum, you should update the following items in the index.html file:
Additionally, you should make any style changes in the index.html file to match the branding for your project/organization or to match your personal preferences.
Once you have a version of the docs folder in your repository on Github, you can configure the repository to deploy the documentation site on Github Pages. To do this, follow these steps:
At this point, it will take a few minutes for Github to deploy the documentation site. Once the deployment process has completed, you can view the deployed site by navigating to https://<your-github-username>.github.io/<your-repository-name>.
The following dependencies and plugins are currently configured and included in this repository:
| Back | FazBrowse Home | New Git URL |