Skip to content
This repository has been archived by the owner on Sep 15, 2019. It is now read-only.
/ klicker-docs Public archive

Documentation for the upcoming version of the UZH IBF Klicker (Instant-Class-Response-System)

License

Notifications You must be signed in to change notification settings

uzh-bf/klicker-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

klicker-docs

This repository provides the documentation of the actual klicker application (Klicker API and Klicker Frontend).

How to work with this repository

There are two main branches with different purposes:

Develop as usual with branches and merge your changes into the master branch.

You may use the following command (within klicker-docs/docusaurus/website) to run the documentation on the localhost and enable a file watcher for live compiling:

yarn start:watch

Run the following commands to publish the newest version of the documentation to the gh-pages branch:

yarn
yarn publish:alexscheitlin

Add your own shortcut by adding your GitHub name to the following file: docusaurus/website/package.json

Workaround if the publish command fails

Then follow these steps to publish the newest version of the documentation to the gh-pages branch:

  1. Go to the website folder of docusaurus within the master branch:
git checkout master

cd klicker-docs\docusaurus\website\
  1. Run yarn and the publish command (see below to create your own shortcut):
yarn
yarn publish:alexscheitlin

If the publish command fails, try to rerun yarn and the again the publish command.

Add your own shortcut adding your GitHub name to the following file: docusaurus/website/package.json

cross-env GIT_USER=AlexScheitlin CURRENT_BRANCH=master yarn run publish-gh-pages
  1. Stash the changes as we don't need them and change to the gh-pages branch:
git stash
git checkout gh-pages
  1. Go to the root folder within the gh-pages branch.
cd ../..
  1. Remove the old version of the documentation, get the new one and copy the HTML files to the root folder:
rm -rf blog\ css\ docs\ en\ img\ *.html

cp -r docusaurus/website/build/klicker-docs/* ./

cp en/*.html ./
  1. Remove the compiled docusaurus folder:
rm -rf docusaurus
  1. Commit and push the changes:
git add .

git commit -m "publish"

git push
  1. Exit the gh-pages branch and never change the documentation within this branch:
git checkout master

About

Documentation for the upcoming version of the UZH IBF Klicker (Instant-Class-Response-System)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published