Pre-requisite:
Installing Noc
If you’re using Linux, macOS (or BSD) (For the Windows users, use WSL)
Get the latest version
git clone https://github.com/noc-lang/noc && cd noc
Get the Noc v0.1.0.0
Download from this release.
Install Noc (for all versions)
make install
Building locally the Noc Manual (only the v0.1.0.0)
There is a tool written in Noc to generate the Noc Manual (includes noc and nocdoc documentation) (nocdoc)
You can build the manual with the Makefile, but you have to install in the first place the pandoc tool to convert some Markdown snippets in HTML.
make build_doc
All HTML files are generated in a manual
folder. The starting page is manual/index.html
You can also document your own functions, check the nocdoc documentation of this tool.
Updating and Uninstalling
We can reinstall Noc with the latest version.
git clone https://github.com/noc-lang/noc && cd noc
# or if the repos is already cloned
git pull origin main
then
make update
To uninstall Noc.
make uninstall
Troubleshooting
To check if we have Noc installed:
noc --version