Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
phibr0 committed Sep 11, 2021
1 parent 0a3e0eb commit 2e1bb6e
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.map
*.map
latex.css
92 changes: 92 additions & 0 deletions comment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*

LaTeX inspired PDF Export Theme for https://obsidian.md
Made by @phibr0 on Github

Tested with Obsidians default Theme and the California Coast Community Theme

Please don't share this File with others, instead share this Link: https://www.buymeacoffee.com/phibr0/e/42263

*/

/* @settings

name: LaTeX like PDF's
id: latex-pdf-css
settings:
-
id: pdf-font
title: PDF Font
description: Font used for the exported PDF's (The CSS Snippet includes the Computer Modern Font)
type: variable-text
default: "CMU Serif"
-
id: pdf-mono-font
title: PDF Monospace Font
description: "Monospaced Font used for the exported PDF's (For use in Code)"
type: variable-text
default: "monospace, Consolas"
-
id: enhanced-everything
title: LaTeX like Enhancements
type: heading
level: 3
collapsed: true
-
id: enhanced-page-breaks
title: Enhanced Page Breaks
description: "Improves Page Breaking in Obsidian's PDF's"
type: class-toggle
default: true
-
id: enhanced-tables
title: Enhanced Tables
type: class-toggle
default: true
-
id: enhanced-blockquotes
title: Enhanced Blockquotes
type: class-toggle
default: true
-
id: enhanced-codeblocks
title: Enhanced Codeblocks
type: class-toggle
default: true
-
id: codeblock-background
title: Codeblock Background Color
type: variable-color
opacity: false
format: hex
default: '#FFFAF0'
-
id: enhanced-images
title: Enhanced Images
type: class-toggle
default: true
-
id: image-alt-text
title: Show Image Numbering and Caption
description: "Use it like so: [[Image.png|Caption here]]"
type: class-toggle
default: true
-
id: numbered-anything
title: Numbering
type: heading
level: 3
collapsed: true
-
id: numbered-headings
title: Numbered Headings
description: "Number the Headings in your PDF. For example:\n1. Heading one\n1.1 Subheading"
type: class-toggle
default: true
-
id: numbered-math
title: Numbered Math Environments
description: "Number the Math Environments in your PDF."
type: class-toggle
default: true
*/
1 change: 0 additions & 1 deletion compile.cmd

This file was deleted.

6 changes: 6 additions & 0 deletions compile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sass .\latex.scss .\latex.css --no-source-map --style compressed

$(
(Get-Content comment.txt -Raw)
(Get-Content latex.css -Raw)
) | Out-File latex.css
11 changes: 0 additions & 11 deletions latex.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
/*
LaTeX inspired PDF Export Theme for https://obsidian.md
Made by @phibr0 on Github
Tested with Obsidians default Theme and the California Coast Community Theme
Please don't share this File with others, instead share this Link: https://www.buymeacoffee.com/phibr0/e/42263
*/

@import "src/cmuFont.scss";
@import "src/styleSettings.scss";

Expand Down

0 comments on commit 2e1bb6e

Please sign in to comment.