This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
-
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.
Cleaning up Gulp tasks, readme, and testing for GitHub action.
- Loading branch information
1 parent
7507ce3
commit 84d7d77
Showing
7 changed files
with
47 additions
and
58 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,56 +1,56 @@ | ||
// const gulp = require('gulp'); | ||
// const markdownPdf = require('gulp-markdown-pdf'); | ||
// const replace = require('gulp-replace'); | ||
// const path = require("path"); | ||
// const fs = require('fs'); | ||
const gulp = require('gulp'); | ||
const markdownPdf = require('gulp-markdown-pdf'); | ||
const replace = require('gulp-replace'); | ||
const path = require("path"); | ||
const fs = require('fs'); | ||
|
||
// gulp.task('docs-concatenate-markdown', function(cb){ | ||
gulp.task('docs-concatenate-markdown', function(cb){ | ||
|
||
// var rootPath = path.resolve('Docs/images/') + "/" | ||
var rootPath = path.resolve('Docs/images/') + "/" | ||
|
||
// var toc = fs.readFileSync("Docs/_Sidebar.md", "utf8"); | ||
var toc = fs.readFileSync("Docs/_Sidebar.md", "utf8"); | ||
|
||
// var lines = toc.split("\n"); | ||
var lines = toc.split("\n"); | ||
|
||
// lines.splice(1, 0, "* [About](Home)"); | ||
lines.splice(1, 0, "* [About](Home)"); | ||
|
||
// var markdown = ""; | ||
var markdown = ""; | ||
|
||
// for (let i = 0; i < lines.length; i++) { | ||
for (let i = 0; i < lines.length; i++) { | ||
|
||
// const line = lines[i]; | ||
const line = lines[i]; | ||
|
||
// if(line.substring(0,1) == "#") | ||
// { | ||
// markdown += line | ||
// } | ||
// else if(line.substring(0,1) == "*") | ||
// { | ||
if(line.substring(0,1) == "#") | ||
{ | ||
markdown += line | ||
} | ||
else if(line.substring(0,1) == "*") | ||
{ | ||
|
||
// let split = line.split("]("); | ||
let split = line.split("]("); | ||
|
||
// markdown += "## " + split[0].substring(3) + "\n"; | ||
markdown += "## " + split[0].substring(3) + "\n"; | ||
|
||
// let text = fs.readFileSync("Docs/" + split[1].substring(0, split[1].length-1) + ".md", "utf8") | ||
let text = fs.readFileSync("Docs/" + split[1].substring(0, split[1].length-1) + ".md", "utf8") | ||
|
||
// markdown += text.replace(/\]\(images\//g, "](" + rootPath);; | ||
// } | ||
markdown += text.replace(/\]\(images\//g, "](" + rootPath);; | ||
} | ||
|
||
// markdown += "\n"; | ||
markdown += "\n"; | ||
|
||
// } | ||
} | ||
|
||
// fs.writeFile('Releases/Source/docs.md', markdown, cb); | ||
// }); | ||
fs.writeFile('Releases/Source/docs.md', markdown, cb); | ||
}); | ||
|
||
// gulp.task('docs-build-pdf', function(){ | ||
gulp.task('docs-build-pdf', function(){ | ||
|
||
// var tmpDoc = 'Releases/Source/docs.md' | ||
var tmpDoc = 'Releases/Source/docs.md' | ||
|
||
// return gulp.src(tmpDoc) | ||
// .pipe(markdownPdf()) | ||
// .pipe(gulp.dest('Releases/Final/')); | ||
return gulp.src(tmpDoc) | ||
.pipe(markdownPdf()) | ||
.pipe(gulp.dest('Releases/Final/')); | ||
|
||
// }) | ||
}) | ||
|
||
// gulp.task("build-docs", gulp.series('docs-concatenate-markdown', 'docs-build-pdf')); | ||
gulp.task("build-docs", gulp.series('docs-concatenate-markdown', 'docs-build-pdf')); |
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,7 +1,7 @@ | ||
--[[ | ||
## Space Station 8 `editor-plugin-brush.lua` | ||
]] | ||
]]-- | ||
|
||
INPUT_TIMER = "InputTimer" | ||
BLINK_TIMER = "BlinkTimer" | ||
|
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,7 +1,8 @@ | ||
--[[ | ||
## Space Station 8 `editor-plugin-mouse.lua` | ||
]] | ||
]]-- | ||
|
||
MOUSE_TIMER = "MouseTimer" | ||
|
||
-- Create the plugin table | ||
|
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,7 +1,7 @@ | ||
--[[ | ||
## Space Station 8 `editor-plugin-options.lua` | ||
]] | ||
]]-- | ||
|
||
-- Create the plugin table | ||
local editorPlugin = { | ||
|
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