Giter VIP home page Giter VIP logo

Comments (6)

phochste avatar phochste commented on August 23, 2024 1

Fixed the cheat sheet to version 2021-11

from catmandu.

phochste avatar phochste commented on August 23, 2024 1

Fixed the documentation in the Wiki also, trying to rebuild the librecat.org webpage but I don't see the changes yet appear there.

There a pandoc command in the procedure to produce a Wiki book from our Wikipages that is deprecated. Alas I am not a pandoc expert (and didn't created this routine) described in : https://github.com/LibreCat/librecat.github.io.
Maybe @nichtich can help ? I think he created the pandoc version of the Wiki as one book?

from catmandu.

jorol avatar jorol commented on August 23, 2024

@phochste Thanks!

from catmandu.

nichtich avatar nichtich commented on August 23, 2024

@phochste can you point me to the build script, log file etc. that involves pandoc?

from catmandu.

phochste avatar phochste commented on August 23, 2024

It is part of the [email protected]:LibreCat/Catmandu.wiki.git repository in the book/ directory. To bad I can't point at it via the web.

Makefile says:

.SUFFIXES: .md .html .pdf
.PHONY: git-clean files push

NAME=index

default: $(NAME).html

$(NAME).md: files ../*.md metadata.yml
	cat metadata.yml > $@
	perl combine-handbook.pl < ../Home.md >> $@

files:
	rsync -r --include="*.jpg" --include="*.png" --exclude="*" ../files/ files/

PANDOC_OPTIONS=--toc -N -s -S --section-divs --template template.html
PANDOC_OPTIONS+=--css https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css
PANDOC_OPTIONS+=--css layout.css

.md.html:
	pandoc $(PANDOC_OPTIONS) -t html5 -o $@ $<

# requires LaTeX
.md.pdf:
	pandoc $(PANDOC_OPTIONS) -o $@ $<

git-clean:
	#@if git status --porcelain 2>/dev/null | grep -q .; then echo "Nothing changed"; exit 1; fi
	date

gh-pages: git-clean $(NAME).html
	cp layout.css files
	git checkout gh-pages
	git pull homepage gh-pages
	rsync -r files/ ../files/
	cp $(NAME).html ../index.html
	mv files/layout.css ..

With my pandoc pandoc 2.16.1 I get

rsync -r --include="*.jpg" --include="*.png" --exclude="*" ../files/ files/
cat metadata.yml > index.md
perl combine-handbook.pl < ../Home.md >> index.md
pandoc --toc -N -s -S --section-divs --template template.html --css https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css --css layout.css -t html5 -o index.html index.md
--smart/-S has been removed.  Use +smart or -smart extension instead.
For example: pandoc -f markdown+smart -t markdown-smart.
Try pandoc --help for more information.
make: *** [index.html] Error 6

from catmandu.

phochste avatar phochste commented on August 23, 2024

I got the homepage generation page scripts too work..but I still don't understand completely how it works.

from catmandu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.