Skip to content

pandoc version requirements and markdown_fix fix. #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ markdown: dst dst/index.html dst/style.css

server: dst dst/style.css dst/index.md dst/sitemap.xml

# CDL: this is where the bibliography @ citations are transformed, I believe, to things like (Someone 2024)
# also, requires a newer version of pandoc, in order to use --citeproc
# https://pandoc.org/releases.html#pandoc-2.11-2020-10-11 or greater,
# which means that on Ubuntu you may need to go directly to the source repo and download/install the .deb
dst/index.html: dst/index.md src/references.bib src/template/index.html dst/style.css
pandoc dst/index.md --template src/template/index.html -s --table-of-contents --bibliography=src/references.bib --citeproc --columns 1000 -H src/header.html -V lang=en -o $@

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ The hosted github page is automatically built on push to master.

To build the page locally, run `make`.

Make sure you have [pandoc](https://pandoc.org/) installed.
Make sure you have [pandoc](https://pandoc.org/) installed.
If you see "unknown option: --citeproc", you may need to install [the latest version directly](https://github.com/jgm/pandoc/releases/latest) rather than with `apt`.

## Development
To continuously build the page locally, listening to changes, run:
Expand Down
2 changes: 1 addition & 1 deletion src/markdown_fix.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if type gsed >/dev/null
if which gsed >/dev/null
then
echo "Using gsed"
function ssed { gsed "$@" ;}
Expand Down