Convert from markdown to html

merge-requests/30/head
Bob Mottram 2022-10-23 10:52:48 +01:00
parent 0fd0645391
commit f9f37a64bf
4 changed files with 159 additions and 686 deletions

View File

@ -10,8 +10,8 @@ if [ ! -f /usr/bin/pandoc ]; then
echo 'pandoc command not found' echo 'pandoc command not found'
exit 1 exit 1
fi fi
pandoc -f html -t markdown -o manual.md manual.html pandoc -t html -f markdown -o manual.html manual.md
git add manual.md git add manual.html
if [ -f /usr/bin/ebook-convert ]; then if [ -f /usr/bin/ebook-convert ]; then
ebook-convert manual.html manual.epub --cover manual-cover.png --authors "${EPUB_AUTHORS}" --language "${EPUB_LANGUAGE}" --tags "${EPUB_TAGS}" --comments "${EPUB_COMMENTS}" --title "${EPUB_TITLE}" ebook-convert manual.html manual.epub --cover manual-cover.png --authors "${EPUB_AUTHORS}" --language "${EPUB_LANGUAGE}" --tags "${EPUB_TAGS}" --comments "${EPUB_COMMENTS}" --title "${EPUB_TITLE}"
else else

Binary file not shown.

View File

@ -1,17 +1,3 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>manual.html</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>
<h1 id="introduction">Introduction</h1> <h1 id="introduction">Introduction</h1>
<p><em>The fediverse</em> is a set of federated servers, typically using <p><em>The fediverse</em> is a set of federated servers, typically using
a communication protocol called <a a communication protocol called <a
@ -891,6 +877,3 @@ Choose links which are relevant to your community so that useful
information is one click away. If you have multiple people on your information is one click away. If you have multiple people on your
instance then assign roles to them so that they have a stake in instance then assign roles to them so that they have a stake in
maintaining a good experience.</p> maintaining a good experience.</p>
</body>
</html>

File diff suppressed because it is too large Load Diff