Skip to content

Commit

Permalink
initial quarto files commit
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Jul 24, 2024
1 parent 20cec77 commit 0ef68b3
Show file tree
Hide file tree
Showing 40 changed files with 9,842 additions and 196 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches:
- main

name: Render and Publish

# you need these permissions to publish to GitHub pages
permissions:
contents: write
pages: write

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# uncomment below and fill to pin a version
# version: SPECIFIC-QUARTO-VERSION-HERE

# From https://github.com/actions/setup-python
- name: Setup Python
uses: actions/setup-python@v3

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.quarto/
docs

624 changes: 624 additions & 0 deletions CODE_OF_CONDUCT-preview.html

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions _extensions/quarto-journals/agu/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: AGU Journals Template
author: Charles Teague
version: 0.1.0
contributes:
formats:
common:
knitr:
opts_chunk:
echo: false
number-sections: true
csl: american-geophysical-union.csl
filters:
- agu.lua
pdf:
documentclass: agujournal2019
classoptions: draft
header-includes: |
\usepackage{url} %this package should fix any errors with URLs in refs.
\usepackage{lineno}
\usepackage[inline]{trackchanges} %for better track changes. finalnew option will compile document with changes incorporated.
\usepackage{soul}
\linenumbers
template-partials:
- "partials/title.tex"
- "partials/_authors.tex"
- "partials/before-body.tex"
- "partials/_affiliations.tex"
- "partials/_corresponding-author.tex"
format-resources:
- agujournal2019.cls
- trackchanges.sty
html:
toc: true
14 changes: 14 additions & 0 deletions _extensions/quarto-journals/agu/agu.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


if quarto.doc.is_format("pdf") then
return {
{
Div = function(div)
if div.identifier == 'refs' then
div.content:insert(pandoc.RawBlock('latex', '\\vspace{1em}'))
return div
end
end
}
}
end
Loading

0 comments on commit 0ef68b3

Please sign in to comment.