Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 1.09 KB

File metadata and controls

32 lines (30 loc) · 1.09 KB

Building Plutus documentation

(Reference: community docs)

In order to build the Plutus documentation in a local web server with js enabled, we just need to follow the next simple steps.

  1. Go to your plutus folder
some/path$ cd /path/to/plutus/plutus
  1. Enter nix shell
path/to/plutus/plutus$ nix-shell
  1. (Optional) If you have not before, build plutus haddock
path/to/plutus/plutus$ nix-build -A plutus-playground.haddock
  1. Once it loads, go up one level and create a new directory
path/to/plutus/plutus$ cd ..
path/to/plutus$ mkdir haddock-web
  1. Then cd into haddock-web and create and compile a main.hs file, as described in the reference
  2. Finally, from this same directory, launch the server
haddock-web$ ./plutus-haddock -s /path/to/plutus/plutus/result
  1. You will see something like
running plutus documentation in http://localhost:8081/plutus-haddock/index.html

so go to the browser and enjoy. By pressing s in the browser you will open a search bar.