Skip to content

Commit

Permalink
add postback section and edit intro documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquin Romo authored and Joaquin Romo committed Jan 3, 2020
2 parents 690feea + 45f2e81 commit f3b2bb3
Show file tree
Hide file tree
Showing 82 changed files with 1,989 additions and 38,193 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ source/images/custom_logo.*
spectacle
dev/
testroot/
pub
source/*.md
source/index.html.md
index.html
.DS_Store

# Logs
logs
Expand Down Expand Up @@ -45,3 +50,4 @@ jspm_packages
# Optional REPL history
.node_repl_history
.idea
index.html
Empty file removed API_KEY
Empty file.
Empty file removed Scroll
Empty file.
27 changes: 15 additions & 12 deletions arapaho.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function getLastGenTime(fpath) {

function check(req,res,fpath) {
fpath = fpath.split('/').join('');
var srcStat = fs.statSync(path.join(__dirname,'source',fpath+'.md'));
var dstStat = {mtime:getLastGenTime(fpath)};
let srcStat = fs.statSync(path.join(__dirname,'source',fpath+'.md'));
let dstStat = {mtime: getLastGenTime(fpath)};
if (!args.preserve) {
try {
dstStat = fs.statSync(path.join(__dirname,fpath));
Expand Down Expand Up @@ -80,7 +80,10 @@ function check(req,res,fpath) {
res.send(err);
}
else {
res.send(html);
let newHtml = html.replace(/"js/g, "\"pub/js");
newHtml = newHtml.replace(/"css/g, "\"pub/css");
newHtml = newHtml.replace(/"images/g, "\"pub/images");
res.send(newHtml);
if (!args.preserve) {
fs.writeFile(path.join(__dirname,fpath),html,'utf8',function(){});
}
Expand All @@ -102,16 +105,16 @@ app.get('*.html', function(req,res) {
});
app.use("/", express.static(__dirname));

var myport = process.env.PORT || 4567;
let myport = process.env.PORT || 4567;
if (args._.length>2) myport = args._[2];

var server = app.listen(myport, function () {
var host = server.address().address;
var port = server.address().port;
const server = app.listen(myport, function () {
const host = server.address().address;
const port = server.address().port;

console.log('Arapaho server listening at http://%s:%s', host, port);
if (args.launch) {
console.log('Launching...');
opn('http://'+(host === '::' ? 'localhost' : 'host') + ':' +port+'/');
}
console.log('Arapaho server listening at http://%s:%s', host, port);
if (args.launch) {
console.log('Launching...');
opn('http://' + (host === '::' ? 'localhost' : 'host') + ':' + port + '/');
}
});
6 changes: 4 additions & 2 deletions buildstyleCustom.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ function sassRender(infile,outfile) {
file: infile,
outputStyle : outputStyle,
functions: assetFunctions({
http_fonts_path: '../../pub/fonts'
http_fonts_path: '../fonts'
})
}, function(err, result) {
if (err) console.error(err)
if (err) {
console.error(err)
}
else {
fs.writeFile(outfile,result.css.toString(),'utf8',function(err){
if (err) console.warn(err.message);
Expand Down
Binary file removed custom/.DS_Store
Binary file not shown.
Binary file removed custom/templates/.DS_Store
Binary file not shown.
35 changes: 0 additions & 35 deletions custom/templates/asyncapi1/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions custom/templates/asyncapi1/authentication.def

This file was deleted.

1 change: 0 additions & 1 deletion custom/templates/asyncapi1/code_go.dot

This file was deleted.

8 changes: 0 additions & 8 deletions custom/templates/asyncapi1/code_java.dot

This file was deleted.

1 change: 0 additions & 1 deletion custom/templates/asyncapi1/code_javascript.dot

This file was deleted.

7 changes: 0 additions & 7 deletions custom/templates/asyncapi1/code_nodejs.dot

This file was deleted.

1 change: 0 additions & 1 deletion custom/templates/asyncapi1/code_python.dot

This file was deleted.

1 change: 0 additions & 1 deletion custom/templates/asyncapi1/code_ruby.dot

This file was deleted.

11 changes: 0 additions & 11 deletions custom/templates/asyncapi1/discovery.dot

This file was deleted.

181 changes: 0 additions & 181 deletions custom/templates/asyncapi1/main.dot

This file was deleted.

Loading

0 comments on commit f3b2bb3

Please sign in to comment.