diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-27 13:12:04 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-27 13:12:04 +0100 |
commit | 00de588babe4efbdec52e34035252c86ee310961 (patch) | |
tree | 397b4a018cc9d93412ed4c44f3218d83edd2e83a /Makefile | |
parent | aa7a3807a718cca2343ac9df84c40a02c7c6cf55 (diff) |
Fix syntax-highlighting of C snippets in local documentation.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,10 +64,11 @@ examples: # Documentation. .PHONY: doc doc: - RUSTDOCFLAGS="$$RUSTDOCFLAGS --html-in-header doc/highlight.js/9.12.0/inc.html" \ + sed 's|"/|"file://$(shell pwd)/doc/|' doc/highlight.js/9.12.0/inc.html \ + > $(CARGO_TARGET_DIR)/inc.html + RUSTDOCFLAGS="$$RUSTDOCFLAGS --html-in-header $(CARGO_TARGET_DIR)/inc.html" \ CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \ $(CARGO) doc $(CARGO_FLAGS) --no-deps --all - cp --recursive doc/highlight.js $(CARGO_TARGET_DIR)/doc # Installation. .PHONY: build-release |