-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make CI works
- Loading branch information
Showing
6 changed files
with
36 additions
and
66 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name = "CSL_Chinese" | ||
uuid = "2c2349b6-e3e1-473f-81d9-e9a98781fcdf" | ||
authors = ["maozhou <[email protected]>"] | ||
authors = ["maozhou <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
|
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
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
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 |
---|---|---|
@@ -1,33 +1,11 @@ | ||
--- | ||
title: CSL Chinese | ||
title: CSL_Chinese | ||
subtitle: "" | ||
author: | ||
- Mao Zhou | ||
|
||
html-license: '' | ||
pdf-footer: "" | ||
tex-license: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International | ||
lang: en-US | ||
tags: [Julialang, CSL, Chinese] | ||
repo: https://test | ||
repo: | ||
secPrefix: Section | ||
figPrefix: Figure | ||
tblPrefix: Table | ||
titlepage: true | ||
bibliography: pandoc/references.bib | ||
allow-subsubsections: true | ||
|
||
# Only used in PDF. | ||
titlepage-top: > | ||
\begin{tabular}{l} | ||
Mao Zhou\\ | ||
Wu Han University\\ | ||
China\\ | ||
\end{tabular} | ||
titlepage-bottom: | | ||
First edition published 2021 | ||
\url{https://juliadatascience.io} | ||
--- |
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 |
---|---|---|
@@ -1,31 +1,23 @@ | ||
module CSL_Chinese | ||
|
||
using Books | ||
using Reexport: @reexport | ||
|
||
@reexport begin | ||
using Books: | ||
BUILD_DIR, | ||
@sc, | ||
@sco, | ||
Options, | ||
build_all, | ||
catch_show, | ||
clean_stacktrace, | ||
code_block, | ||
convert_output, | ||
gen, | ||
output_block, | ||
sc, | ||
sco, | ||
scob, | ||
serve, | ||
without_caption_label | ||
|
||
end | ||
|
||
# Showcode additions. | ||
export sce, scsob, trim_last_n_lines, plainblock | ||
@reexport using Books: | ||
build_all, html, pdf, | ||
gen | ||
|
||
""" | ||
build() | ||
This function is called during CI. | ||
""" | ||
function build() | ||
# To avoid publishing broken websites. | ||
fail_on_error = true | ||
gen(; fail_on_error) | ||
html() | ||
#build_all(; fail_on_error) | ||
end | ||
|
||
end # module |