Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
feat: add examples repo as submodule

feat: add new assets

feat: rename generated pdf

feat: rename generated pdf

feat: update readme

feat: update readme

feat: update config

faet: update title

feat: update config

feat: update pipelie

feat: update pipeline

feat: update pipeline

feat: update pipeline

feat: update pipeline

feat: update stuff

fix: sed issue

fix: sed issue

feat: update assets

feat: update images

feat: update image link

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update

feat: update
  • Loading branch information
novalagung committed Dec 21, 2022
0 parents commit b395d2a
Show file tree
Hide file tree
Showing 301 changed files with 34,808 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/pdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: 'generate pdf'

on:
push:
branches:
- master

jobs:
generate_webbook:
name: 'generate webbook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
- run: npm install
- name: generate assets
run: |
npm run build
rm -rf build/index.html
cp build/intro.html build/index.html
sed -i 's#https://dasarpemrogramanrust.novalagung.com/intro#https://dasarpemrogramanrust.novalagung.com/#g' build/index.html
- name: publish webbook
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: gh-pages

generate_ebook:
name: 'generate ebook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install prince
run: |
curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O
tar zxf prince-14.2-linux-generic-x86_64.tar.gz
cd prince-14.2-linux-generic-x86_64
yes "" | sudo ./install.sh
- name: build pdf
run: npx docusaurus-prince-pdf -u https://dasarpemrogramanrust.novalagung.com/intro
- name: install pdftk
run: sudo apt install pdftk
- name: join cover and pdf
run: pdftk "tmp/cover ebook.pdf" pdf/dasarpemrogramanrust.novalagung.com-intro.pdf cat output pdf/dasarpemrogramanrust.pdf
- name: publish ebook
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./pdf
publish_branch: ebooks
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "examples"]
path = examples
url = [email protected]:novalagung/dasarpemrogramanrust-example.git
16 changes: 16 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"MD013": {
"line_length": 999
},
"MD033": {
"allowed_elements": [
"pre",
"a",
"br",
"sup",
"span"
]
},
"MD034": false,
"MD038": false
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"latex",
"plaintext"
]
}
Loading

0 comments on commit b395d2a

Please sign in to comment.