feat: added front and back matter along with a new theme
This commit is contained in:
parent
015d1ff1f0
commit
aab4ab0948
13 changed files with 2480 additions and 1894 deletions
|
@ -22,10 +22,7 @@ publish:
|
||||||
- npx semantic-release
|
- npx semantic-release
|
||||||
|
|
||||||
# Build the files.
|
# Build the files.
|
||||||
- npm run build
|
- npm run upload
|
||||||
|
|
||||||
# Trigger the Fedran website to rebuild.
|
|
||||||
- "curl -X POST -F token=$fedranAccessKey -F ref=master https://gitlab.com/api/v4/projects/4027285/trigger/pipeline"
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
11
backmatter/about.md
Normal file
11
backmatter/about.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: About D. Moonfire
|
||||||
|
---
|
||||||
|
|
||||||
|
D. Moonfire is the remarkable intersection of a computer nerd and a scientist. He inherited a desire for learning, endless curiosity, and a talent for being a polymath from both of his parents. Instead of focusing on a single genre, he writes stories and novels in many different settings ranging from fantasy to science fiction. He also throws in the occasional romance or forensics murder mystery to mix things up.
|
||||||
|
|
||||||
|
In addition to having a borderline unhealthy obsession with the written word, he is also a developer who loves to code as much as he loves writing.
|
||||||
|
|
||||||
|
He lives near Cedar Rapids, Iowa with his wife, numerous pet computers, and a pair of highly mobile things of the male variety.
|
||||||
|
|
||||||
|
You can see more work by D. Moonfire at his website at [https://d.moonfire.us/](https://d.moonfire.us/). His fantasy world, Fedran, can be found at [https://fedran.com/](https://fedran.com/).
|
11
backmatter/colophon.md
Normal file
11
backmatter/colophon.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: Colophon
|
||||||
|
---
|
||||||
|
|
||||||
|
Each chapter of this book was written and edited using Emacs. The files for the novel were managed in a Git repository on Gitlab. Each chapter was an individual file formatted using Markdown. Information and working notes about the chapters were placed into a YAML header at the top of each chapter.
|
||||||
|
|
||||||
|
These individual chapters were combined together using a series of tools I've written over the years for creating EPUB, MOBI, and the print-ready PDF.
|
||||||
|
|
||||||
|
The cover was created using Inkscape. The color scheme uses eight colors of a monochromatic scale. These colors are shared among all of the Linsan novels. Likewise, the "0037-00" along the spine indicates this is the first published book ("00") with Linsan as the main character ("0037").
|
||||||
|
|
||||||
|
The font used on the cover and interior is Source Serif Pro in various weights and styles.
|
25
backmatter/credits.md
Normal file
25
backmatter/credits.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
title: Credits
|
||||||
|
---
|
||||||
|
|
||||||
|
I used to do acknowledgments but then I realized there were a lot of people who went into helping me write this book, more than would comfortably fit in a few paragraphs. At the same time, I felt the need to thank them because without their help, this book would remain only in my imagination.
|
||||||
|
|
||||||
|
### Alpha Readers
|
||||||
|
|
||||||
|
If it wasn't for the Noble Pen writing group, I would have never gotten that far.
|
||||||
|
|
||||||
|
* None
|
||||||
|
|
||||||
|
### Beta Readers
|
||||||
|
|
||||||
|
* None
|
||||||
|
|
||||||
|
### Editors
|
||||||
|
|
||||||
|
* None
|
||||||
|
|
||||||
|
### Family
|
||||||
|
|
||||||
|
* Susan
|
||||||
|
* Eli
|
||||||
|
* Bruce
|
13
backmatter/fedran.md
Normal file
13
backmatter/fedran.md
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
title: Fedran
|
||||||
|
---
|
||||||
|
|
||||||
|
Fedran is a world caught on the cusp of two great ages.
|
||||||
|
|
||||||
|
For centuries, the Crystal Age shaped society through the exploration of magic. Every creature had the ability to affect the world using talents and spells. The only limitation was imagination, will, and the inescapable rules of resonance. But as society grew more civilized, magic became less reliable and weaker.
|
||||||
|
|
||||||
|
When an unexpected epiphany seemingly breaks the laws of resonance, everything changed. Artifacts no longer exploded when exposed to spells, but only if they were wrapped in cocoons of steel and brass. The humble fire rune becomes the fuel for new devices, ones powered by steam and pressure. These machines herald the birth of a new age, the Industrial Age.
|
||||||
|
|
||||||
|
Now, the powers of the old age struggle against the onslaught of new technologies and an alien way of approaching magic. Either the world will adapt or it will be washed away in the relentless march of innovation.
|
||||||
|
|
||||||
|
To explore the world of Fedran, check out [https://fedran.com/](https://fedran.com/). There you'll find stories, novels, character write-ups and more.
|
32
backmatter/license.md
Normal file
32
backmatter/license.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
title: License
|
||||||
|
---
|
||||||
|
|
||||||
|
This book is distributed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license. More info can be found at [https://creativecommons.org/licenses/by-nc-sa/4.0/](https://creativecommons.org/licenses/by-nc-sa/4.0/). This means:
|
||||||
|
|
||||||
|
### You are free to:
|
||||||
|
|
||||||
|
* Share — copy and redistribute the material in any medium or format
|
||||||
|
* Adapt — remix, transform, and build upon the material
|
||||||
|
|
||||||
|
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||||
|
|
||||||
|
### Under the following terms:
|
||||||
|
|
||||||
|
* Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
||||||
|
* NonCommercial — You may not use the material for commercial purposes.
|
||||||
|
* ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
|
||||||
|
|
||||||
|
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
||||||
|
|
||||||
|
### Preferred Attribution
|
||||||
|
|
||||||
|
The preferred attribution for this novel is:
|
||||||
|
|
||||||
|
> "Allegro" by D. Moonfire is licensed under CC BY-NC-SA 4.0
|
||||||
|
|
||||||
|
In the above attribution, use the following links:
|
||||||
|
|
||||||
|
* Allegro: [https://fedran.com/allegro/](https://fedran.com/allegro/)
|
||||||
|
* D. Moonfire: https://d.moonfire.us/
|
||||||
|
* CC BY-NC-SA 4.0: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
15
backmatter/patrons.md
Normal file
15
backmatter/patrons.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
title: Patrons
|
||||||
|
---
|
||||||
|
|
||||||
|
This book is freely available on the Fedran website at [https://fedran.com/sand-and-blood/](https://fedran.com/sand-and-blood/). It can be reformatted for any device, shared, and even reposted on other websites (with attribution and a link to the original). If someone wants to write a fanfic or create art inspired by the book, they are allowed to do so with relatively few limitations, which are set down by the license described in the previous section.
|
||||||
|
|
||||||
|
It is hard to compete with "free" in this day and age. Releasing a book under a Creative Commons license is one way of doing that, but there are still costs associated with producing the results. There are hundreds of hours put into writing it, hiring editors to go through it, and even hosting it on a website. As economics will tell you, there is no such thing as a free lunch. Most of the time, you pay for a book before reading it. Sometimes you have a sample of a few chapters to give you a hint, other times just a blurb. Here, you get the entire piece. If you like it, please consider supporting my writing.
|
||||||
|
|
||||||
|
The cheapest way of helping is simply to talk about the book. Post opinions on social networks, write a review and put it up on Amazon or Goodreads, or give a copy to someone who might like it.
|
||||||
|
|
||||||
|
The second way of helping is to donate money. Even a dollar helps. There are quite a few ways of doing this: you can buy a print copy; the tip jar at Broken Typewriter Press ([https://broken.typewriter.press/dmoonfire/](https://broken.typewriter.press/dmoonfire/)); or even consider becoming a patron. Patronage provides advance access to works-in-progress, votes on new stories and titles, and input into the world and my writing. You can read more about patrons at [https://fedran.com/patrons/](https://fedran.com/patrons/).
|
||||||
|
|
||||||
|
I can only hope that if you like it, you'll help me write the next one.
|
||||||
|
|
||||||
|
Thank you.
|
11
frontmatter/dedication.md
Normal file
11
frontmatter/dedication.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
title: Dedication
|
||||||
|
---
|
||||||
|
|
||||||
|
This novel is dedicated to my three musical muses:
|
||||||
|
|
||||||
|
Gael Baudino for *Glossomar Axe*
|
||||||
|
|
||||||
|
Mercedes Lackey for *The Lark and the Wren*
|
||||||
|
|
||||||
|
Lindsey Stirling for *Roundtable Rival*
|
27
frontmatter/legal.md
Normal file
27
frontmatter/legal.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
title: Legal
|
||||||
|
---
|
||||||
|
|
||||||
|
Copyright © 2020 D. Moonfire\
|
||||||
|
Some Rights Reserved\
|
||||||
|
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
|
||||||
|
|
||||||
|
Cover art by D. Moonfire
|
||||||
|
|
||||||
|
All characters, events, and locations are fictitious. Any resemblance to persons, past, present, and future is coincidental and highly unlikely.
|
||||||
|
|
||||||
|
Some themes that appear in this book: bullying. There is no sex or explicit scenes. There is no rape.
|
||||||
|
|
||||||
|
Broken Typewriter Press\
|
||||||
|
5001 1st Ave SE\
|
||||||
|
Ste 105 #243\
|
||||||
|
Cedar Rapids, IA 52402
|
||||||
|
|
||||||
|
Broken Typewriter Press\
|
||||||
|
[https://broken.typewriter.press/](https://broken.typewriter.press/)
|
||||||
|
|
||||||
|
{% if edition.isbn %}
|
||||||
|
ISBN {{ edition.isbn }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
Version {{ edition.version }}
|
15
frontmatter/title.html
Normal file
15
frontmatter/title.html
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
title: Title
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="title">
|
||||||
|
<div class="title-area">
|
||||||
|
<div class="large">Allegro</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="author">D. Moonfire</div>
|
||||||
|
|
||||||
|
<div class="publisher">
|
||||||
|
Broken Typewriter Press • Cedar Rapids
|
||||||
|
</div>
|
||||||
|
</div>
|
4067
package-lock.json
generated
4067
package-lock.json
generated
File diff suppressed because it is too large
Load diff
61
package.json
61
package.json
|
@ -2,10 +2,52 @@
|
||||||
"name": "allegro",
|
"name": "allegro",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"fedran": {
|
||||||
|
"pov": "0037",
|
||||||
|
"vol": "00"
|
||||||
|
},
|
||||||
|
"description": "A novel by D. Moonfire",
|
||||||
|
"author": "D. Moonfire",
|
||||||
|
"license": "CC-BY-NC-SA-4.0",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://gitlab.com/fedran/allegro.git"
|
||||||
|
},
|
||||||
|
"homepage": "https://fedran.com/allegro/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:epub": "mfgames-writing-format build epub",
|
|
||||||
"build:pdf": "mfgames-writing-format build pdf",
|
"build:pdf": "mfgames-writing-format build pdf",
|
||||||
"build": "npm run build:epub && npm run build:pdf"
|
"build:epub": "mfgames-writing-format build epub",
|
||||||
|
"build": "npm run build:epub && npm run build:mobi && npm run build:pdf",
|
||||||
|
"build:extended": "npm run build && npm run build:html && npm run build:docx",
|
||||||
|
"build:docx": "sed 's@­@@g' < dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.html | pandoc -f html -t docx -o dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.docx",
|
||||||
|
"build:mobi": "kindlegen dmoonfire-$npm_package_fedran_pov-$npm_package_fedran_vol-$npm_package_name-$npm_package_version.epub",
|
||||||
|
"build:html": "mfgames-writing-format build html",
|
||||||
|
"prebuild:mobi": "npm run build:epub",
|
||||||
|
"prebuild": "rm -f $npm_package_name-*.* $npm_package_name.tar.bz2",
|
||||||
|
"bundle": "tar -cjf $npm_package_name.tar.bz2 *.epub *.pdf",
|
||||||
|
"prebundle": "npm run build",
|
||||||
|
"upload": "aws --endpoint-url https://$AWS_ENDPOINT s3 cp --acl public-read $npm_package_name.tar.bz2 s3://$AWS_BUCKET/$npm_package_name.tar.bz2",
|
||||||
|
"preupload": "npm run bundle"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@fedran/writing-hyphen": "^1.0.0",
|
||||||
|
"@fedran/writing-theme": "^3.0.5",
|
||||||
|
"@mfgames-writing/epub2": "^1.1.3",
|
||||||
|
"@mfgames-writing/format": "^2.0.0",
|
||||||
|
"@mfgames-writing/guillemet": "^1.0.0",
|
||||||
|
"@mfgames-writing/html": "^0.1.1",
|
||||||
|
"@mfgames-writing/hyphen": "^0.4.3",
|
||||||
|
"@mfgames-writing/weasyprint": "^4.0.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^7.6.1",
|
||||||
|
"@commitlint/config-conventional": "^7.6.0",
|
||||||
|
"@semantic-release/changelog": "^3.0.6",
|
||||||
|
"@semantic-release/git": "^7.0.18",
|
||||||
|
"commitizen": "^2.10.1",
|
||||||
|
"cz-conventional-changelog": "^2.1.0",
|
||||||
|
"husky": "^0.14.3",
|
||||||
|
"semantic-release": "^15.14.0"
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
|
@ -39,20 +81,5 @@
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@commitlint/cli": "^8.2.0",
|
|
||||||
"@commitlint/config-conventional": "^8.2.0",
|
|
||||||
"@fedran/writing-theme": "^2.0.2",
|
|
||||||
"@mfgames-writing/epub2": "^1.1.3",
|
|
||||||
"@mfgames-writing/format": "^2.0.0",
|
|
||||||
"@mfgames-writing/hyphen": "^0.4.3",
|
|
||||||
"@mfgames-writing/weasyprint": "^4.0.0",
|
|
||||||
"@semantic-release/changelog": "^3.0.6",
|
|
||||||
"@semantic-release/git": "^7.0.18",
|
|
||||||
"commitizen": "^4.0.3",
|
|
||||||
"cz-conventional-changelog": "^3.0.2",
|
|
||||||
"husky": "^3.1.0",
|
|
||||||
"semantic-release": "^15.13.31"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,60 @@
|
||||||
metadata:
|
metadata:
|
||||||
title: "Allegro"
|
series:
|
||||||
author: "D. Moonfire"
|
name: Linsan
|
||||||
|
volume: 1
|
||||||
|
title: Allegro
|
||||||
|
author: D. Moonfire
|
||||||
|
publisher: Broken Typewriter Press
|
||||||
|
rights: CC-BY-NC-SA-4.0
|
||||||
|
description:
|
||||||
|
source: ./description.md
|
||||||
|
subjects:
|
||||||
|
- Anime
|
||||||
|
- Fantasy
|
||||||
|
- Steampunk
|
||||||
|
- Fiction
|
||||||
|
- Action
|
||||||
|
- Drama
|
||||||
language: en
|
language: en
|
||||||
|
date: 2019-12-20
|
||||||
theme: "@fedran/writing-theme"
|
theme: "@fedran/writing-theme"
|
||||||
outputDirectory: .
|
outputDirectory: .
|
||||||
outputFilename: "{{ edition.name }}-{{ edition.version }}.{{ edition.editionName }}"
|
outputFilename: "dmoonfire-{{ edition.fedran.pov }}-{{ edition.fedran.vol}}-{{ edition.name }}-{{ edition.version }}.{{ edition.editionName }}"
|
||||||
|
|
||||||
editions:
|
editions:
|
||||||
|
|
||||||
epub:
|
epub:
|
||||||
format: "@mfgames-writing/epub2"
|
format: "@mfgames-writing/epub2"
|
||||||
|
|
||||||
|
|
||||||
pdf:
|
pdf:
|
||||||
format: "@mfgames-writing/weasyprint"
|
format: "@mfgames-writing/weasyprint"
|
||||||
images:
|
images:
|
||||||
grayscale: true
|
grayscale: true
|
||||||
opaque: true
|
opaque: true
|
||||||
|
|
||||||
|
|
||||||
contents:
|
contents:
|
||||||
|
- element: cover
|
||||||
|
source: build/repos/fedran-covers/dist/full/0037-00-allegro-front.jpg
|
||||||
|
linear: false
|
||||||
|
exclude:
|
||||||
|
editions: [pdf]
|
||||||
|
toc: true
|
||||||
|
- element: bastard
|
||||||
|
source: frontmatter/title.html
|
||||||
|
linear: false
|
||||||
|
exclude:
|
||||||
|
editions: [epub]
|
||||||
|
toc: true
|
||||||
|
- element: title
|
||||||
|
source: frontmatter/title.html
|
||||||
|
linear: false
|
||||||
|
exclude:
|
||||||
|
toc: true
|
||||||
|
- element: legal
|
||||||
|
source: frontmatter/legal.md
|
||||||
|
liquid: true
|
||||||
|
linear: false
|
||||||
|
- element: dedication
|
||||||
|
source: frontmatter/dedication.md
|
||||||
|
linear: false
|
||||||
- element: toc
|
- element: toc
|
||||||
linear: false
|
linear: false
|
||||||
title: Contents
|
title: Contents
|
||||||
|
@ -33,4 +67,19 @@ contents:
|
||||||
start: true
|
start: true
|
||||||
page: 1
|
page: 1
|
||||||
pipeline: &pipelines
|
pipeline: &pipelines
|
||||||
|
- module: "@fedran/writing-hyphen"
|
||||||
- module: "@mfgames-writing/hyphen"
|
- module: "@mfgames-writing/hyphen"
|
||||||
|
- element: appendix
|
||||||
|
source: backmatter/about.md
|
||||||
|
- element: appendix
|
||||||
|
source: backmatter/fedran.md
|
||||||
|
- element: appendix
|
||||||
|
id: license
|
||||||
|
source: backmatter/license.md
|
||||||
|
- element: appendix
|
||||||
|
source: backmatter/patrons.md
|
||||||
|
- element: appendix
|
||||||
|
source: backmatter/credits.md
|
||||||
|
pipeline: *pipelines
|
||||||
|
- element: colophon
|
||||||
|
source: backmatter/colophon.md
|
||||||
|
|
Loading…
Reference in a new issue