jldec / pub-server Goto Github PK
View Code? Open in Web Editor NEWJavaScript static site generator and editor (pre react & gatsby)
Home Page: https://jldec.github.io/pub-doc/
License: MIT License
JavaScript static site generator and editor (pre react & gatsby)
Home Page: https://jldec.github.io/pub-doc/
License: MIT License
I would like to try this. I'm running Win7. This would be nice -
A 1-click installer which eliminates the need to pre-install node.js and
use the command-line is coming soon. Fixes for Windows support are also a high priority.
What goes wrong when I try to install on Windows?
hi.
i setup a blog: http://pub.smt.biz.st ,but how to paginate?
hi, am wondering if it's possible to point pub at a directory and have it parse sub directories, generating a navigation tree automatically??
Thanks
David
hey, thanks for your great project!
i have some weird issue trying to run this inside a docker container:
directory layout:
README.md
startup
pub -E -W -K
output
pub-server v1.10.2
source /var/app/*.{md,hbs}
pub-pkg-jquery
pub-theme-doc
pub-pkg-highlight
pub-pkg-font-awesome
starting up http://localhost:3001
listening on port 3001
so far so good, but if i try to access the page i get:
$ curl localhost:3001
Found. Redirecting to /readme
$ curl localhost:3001/readme
Found. Redirecting to /
this leads to an endless redirect.
somehow it works perfectly on my local machine (osx), so i guess the problem has todo with case sensitive filesystems inside the container (linux) or something like that...
i tried it with a readme.md
but happens to be the same
I found pub-server looking for a compromise between a git-backed static site generator, and an web-editable site, like a wiki.
In other words, I want to be able to edit markdown in a git repository and have it published to a static site when I push to origin; however, I also want to allow others to edit this site and have changes committed, without forcing them to learn about git and all the rest.
Something like a markdown wiki would be nice, although the full features of a wiki aren't mandatory, just something non-technical users can use without a lot of frustration.
I've looked at some other solutions; site generators are typically editorless, and more full blown blogging software is (IMO) just too complicated and fragile, when all you really want to end up is some static content on a web server.
pub-server looks intriguing in that it almost seems to do just what I wanted, if without the wiki-style histories and page indexes. I've cloned the code, and running pub.js from within allows me to edit the markdown in the repo! But saving does not appear to commit the changes, and although I've looked through the source of pub-server and some of the pub-* dependencies, I don't see evidence that it can currently do that.
There is I think a pluggable way to publish content changes, the pub-src-* packages, am I correct? However I can't see anything which commits to git. Tentatively it looks like it will publish to the filesystem, github pages, redis, and a JSON API over HTTP. The info in these sub packages are a bit terse, so I'm a bit sketchy about that.
So my question is, is what I want to do achievable now with pub-server, or if not, with not to much effort for someone reasonably familiar with Javascript and the NodeJS toolchain?
Thanks.
try to install with node v4
pub-server npm install will show errors building socket.io like the following:
> [email protected] install /Users/hello/pub/server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.