Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
workflow_dispatch:
push:
branches:
- '**' # every branch

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
all: preview

FORMAT?=html

preview:
quarto preview
quarto preview --no-browser --to $(FORMAT)

publish:
quarto publish gh-pages
quarto publish gh-pages --no-browser

pdf:
quarto render
render:
quarto render --to pdf

pluto:
julia -e "using Pluto; Pluto.run()"
13 changes: 9 additions & 4 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ book:
title: "LaPros"
author: "Võ Chí Công"
date: "2022/8/25"
downloads: pdf
chapters:
- index.qmd
- 20-method.qmd
- 90-final.qmd
- doc/20-method.qmd
- doc/90-final.qmd
repo-url: https://github.com/Tre-Xanh/lapros

comments:
hypothesis: true

crossref:
eq-prefix: Eq
Expand All @@ -17,7 +22,7 @@ crossref:
format:
html:
theme: cosmo
include-before-body: preamble.md
include-before-body: doc/preamble.md
pdf:
documentclass: scrreprt
include-in-header: preamble.tex
include-in-header: doc/preamble.tex
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed docs/.nojekyll
Empty file.
189 changes: 0 additions & 189 deletions docs/404.html

This file was deleted.

Binary file removed docs/_main.pdf
Binary file not shown.
Loading