-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
0 parents
commit b395d2a
Showing
301 changed files
with
34,808 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"spellright.language": [ | ||
"en" | ||
], | ||
"spellright.documentTypes": [ | ||
"latex", | ||
"plaintext" | ||
] | ||
} |
Oops, something went wrong.