Skip to content

Commit

Permalink
Merge pull request #1107 from erooke/docs
Browse files Browse the repository at this point in the history
Make `src/docs/copy.sh` a little more robust
  • Loading branch information
daniel-larraz authored Nov 14, 2024
2 parents 81056b5 + 548347e commit cc2ebc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/copy.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
html_path=../../_doc/_html
# get name of internal library
lib_name=$(ls $html_path | grep kind2dev)
# copy ./include dir into library documentation dir
cp -r ./include $html_path/$lib_name
cp -r ./include "$html_path/$lib_name"
# compile index.mld into page-index.odoc file
odoc compile --pkg=$lib_name index.mld
odoc compile --pkg="$lib_name" index.mld
# convert page-index.odoc to index.html and resolve links to other webpages
odoc html ./page-index.odoc -I ../.kind2dev.objs/byte --output $html_path
# replace all instances of kind2 with lib_name
Expand Down

0 comments on commit cc2ebc2

Please sign in to comment.