layout |
---|
home |
We use Couscous generates a GitHub pages website from your markdown documentation.
- Add new documentation markdown files to the root directory
- Images path will be to the root of the website (/images/<yourimage.png>)
- All files names should be lowercase and no spaces
- Image file names should be .png and NOT .PNG
-
Install Pre-requisites > On bash prompt
sudo apt-get install build-essential libxml2-dev
-
Install php and git
sudo apt-get install -y git php7.0
-
Get php packages and install
sudo apt-add-repository ppa:ondrej/php
sudo apt install unzip zip
sudo apt-get install -y git php7.0-curl php7.0-xml php7.0-mbstring php7.0-gd php7.0-sqlite3 php7.0-mysql
-
Install NPM and bower�
sudo apt-get install composer composer update sudo apt-get install npm sudo npm install -g bower sudo npm install -g less less-plugin-clean-css
if the npm install fails, then likely the nodejs is not syslinked to node. Run the following command to fix it
sudo ln -s /usr/bin/nodejs /usr/bin/node
composer global require couscous/couscous
if couscous install fails , then likely user does not have permissiosn on .composer
directory. Run the following command to fix it
sudo chown -R $USER ~/.composer/
You might have to Change directory mount the folder to the
cd /mnt/c/<path_to_docs_cloudneeti>
couscous preview
If couscous fails to generate files due to permissions on directory, then run following command.
find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \;
Verify your changes on the browser. Most likely the URL would be http://127.0.0.1:8000/deployment-guide.html
The following command will push the generated files to gh_pages branch
couscous deploy
The Follwing command will delete all files generated by couscous
couscous clear