-
-
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.
- Loading branch information
1 parent
643ff8a
commit b1fe9fe
Showing
12 changed files
with
706 additions
and
13 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 |
---|---|---|
|
@@ -33,3 +33,5 @@ yarn-debug.log* | |
.pnp.js | ||
# Yarn Integrity file | ||
.yarn-integrity | ||
.envrc | ||
.torchlight-cache |
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 +1 @@ | ||
/* 1653516523 */ | ||
/* 1653522500 */ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Builders::Torchlight < SiteBuilder | ||
def build | ||
hook :site, :post_write, priority: :high do | ||
# next unless Bridgetown.env.production? | ||
|
||
system "yarn torchlight" | ||
end | ||
end | ||
end |
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
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 |
---|---|---|
|
@@ -6,5 +6,7 @@ module.exports = { | |
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
plugins: [ | ||
require("@tailwindcss/typography"), | ||
], | ||
} |
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,64 @@ | ||
module.exports = { | ||
// Your token from https://torchlight.dev | ||
token: process.env.TORCHLIGHT_TOKEN, | ||
|
||
// The Torchlight client caches highlighted code blocks. Here you | ||
// can define which directory you'd like to use. You'll likely | ||
// want to add this directory to your .gitignore. Set to | ||
// `false` to use an in-memory cache. You may also | ||
// provide a full cache implementation. | ||
cache: '.torchlight-cache', | ||
|
||
// Which theme you want to use. You can find all of the themes at | ||
// https://torchlight.dev/docs/themes. | ||
theme: 'atom-one-dark', | ||
|
||
// The Host of the API. | ||
host: 'https://api.torchlight.dev', | ||
|
||
// Global options to control block-level settings. | ||
// https://torchlight.dev/docs/options | ||
options: { | ||
// Turn line numbers on or off globally. | ||
lineNumbers: false, | ||
|
||
// Control the `style` attribute applied to line numbers. | ||
// lineNumbersStyle: '', | ||
|
||
// Turn on +/- diff indicators. | ||
diffIndicators: true, | ||
|
||
// If there are any diff indicators for a line, put them | ||
// in place of the line number to save horizontal space. | ||
diffIndicatorsInPlaceOfLineNumbers: true | ||
|
||
// When lines are collapsed, this is the text that will | ||
// be shown to indicate that they can be expanded. | ||
// summaryCollapsedIndicator: '...', | ||
}, | ||
|
||
// Options for the highlight command. | ||
highlight: { | ||
// Directory where your un-highlighted source files live. If | ||
// left blank, Torchlight will use the current directory. | ||
input: './output', | ||
|
||
// Directory where your highlighted files should be placed. If | ||
// left blank, files will be modified in place. | ||
output: '', | ||
|
||
// Globs to include when looking for files to highlight. | ||
includeGlobs: [ | ||
'**/*.htm', | ||
'**/*.html' | ||
], | ||
|
||
// String patterns to ignore (not globs). The entire file | ||
// path will be searched and if any of these strings | ||
// appear, the file will be ignored. | ||
excludePatterns: [ | ||
'/node_modules/', | ||
'/vendor/' | ||
] | ||
} | ||
} |
Oops, something went wrong.
b1fe9fe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
bridgetown-torchlight-demo – ./
bridgetown-torchlight-demo.vercel.app
bridgetown-torchlight-demo-andrewmcodes.vercel.app
bridgetown-torchlight-demo-git-main-andrewmcodes.vercel.app