kastle-lab / modular-ontology-design-library

Creative Commons Attribution Share Alike 4.0 International
2 stars 1 forks source link

documenation-generator webhook action thing #50

Closed cogan-shimizu closed 1 year ago

cogan-shimizu commented 1 year ago
JoshQuaintance commented 1 year ago
  1. Using the git pre-commit hook, it will now check if a .owl file has been staged for commit and before it is commited, the hook will run the documentation-generator.
  2. Right now the script will fetch for the script every single run, but if we decided to use submodules, it will just use the submodule.
  3. The conversion to markdown somewhat works with pandoc, but it cannot convert the LaTeX math. GitHub does read and parse the LaTeX math and display properly in GitHub
threefinbdd commented 1 year ago

This is more for record keeping with CI/CD on modl:

Notes running pre-commit hook:

  1. Requires env folder for #!/env/bash - easy change for local systems IE., #!/usr/bin/bash. I don't think theres much that can be done about this other than document it if git commit complains about "No such file or directory".
  2. Probably the biggest issue is the hook script acts up with bad invisible characters. The quick-fix here is dos2unix on the script itself to remove the bad characters. Saucey
cogan-shimizu commented 1 year ago

Is it a windows line ending thing?