Questions tagged [docpad]

DocPad is a language agnostic document management system built on Node.js. It's comparable to static site generators such as Jekyll and Octopress, however is not limited to static site generation.

DocPad is a language agnostic document management system built on Node.js. It's comparable to static site generators such as Jekyll and Octopress, however is not limited to static site generation.

255 questions
21
votes
4 answers

What's the best way (or package) to build a static site using Node.js?

In Short What's the best way to set up a static blog with Markdown and RSS support, just like this guy did, but use Node and a JavaScript web-framework instead of Python & Django? In Length I'd like to build a static site using Node.js, preferably…
Ory Band
  • 14,716
  • 14
  • 59
  • 66
8
votes
2 answers

How can I minify HTML, CSS and JavaScript files in DocPad?

I would like to minify HTML, CSS and JavaScript files when I hit docpad generate, how can I do that?
Zeno Rocha
  • 3,226
  • 1
  • 23
  • 27
6
votes
3 answers

docpad run keeps asking for Terms of Service

after updating npm, installing docpad (npm install -g docpad) i've validate that my PATH has git and npm. i use docpad run and i got the following output: C:\Work\Edu\docpad>docpad run info: Welcome to DocPad v6.69.0 (global installation:…
6
votes
2 answers

Docpad - how can I find out why it is slow?

I'm migrating my tumblr blog to docpad and have started with this boilerplate: https://github.com/ervwalter/ewalnet-docpad Now my problem is that "docpad run" takes 58s to run, and a livereload run takes 23s. I wrote the author of this boilerplate…
hansaplast
  • 11,007
  • 2
  • 61
  • 75
6
votes
1 answer

Static vs. dynamic content in docpad system - how to create dynamic content?

DocPad is described as being comparable to other static site generators, but it is also described as being "not limited to static site generation". I've been browsing the DocPad website and other documentation and haven't yet been able to find…
songololo
  • 4,724
  • 5
  • 35
  • 49
4
votes
2 answers

Generate different docpad collections for different languages

I want to tune my multilungual DocPad blog so that pages ended with *.ru.md go into /ru/ directory, and pages ended with *.en.md go into /en/ directory. Let's say this is the initial structire src/ pages/ page1.ru.md page1.en.md …
Varvara Stepanova
  • 3,489
  • 4
  • 22
  • 26
4
votes
2 answers

Need explanation for Docpad persistence

I am pretty confused with the architecture behind how data is persisted in Docpad. From blogs and forums, I got to know in-memory (and/or out directory) is used for generated contents. But one of the selling points of Docpad is "completely file…
1001b
  • 265
  • 3
  • 13
4
votes
1 answer

How to programmatically add script or stylesheet on a per page basis in Docpad

How can I programmatically add script or stylesheet tag to a page specified in page's YAML front matter (meta)? Assuming there is src/documents/posts/a.html.eco with following contents: --- layout: default scripts: ['a.js'] --- Blog post that…
Sergey Lukin
  • 471
  • 2
  • 17
4
votes
1 answer

difference between static and production environments in docpad

"production" environment is specified in "to a node.js hosting provider" section of docpad's deploy guide while "static" is specified in "to static servers" section. What is the real difference between both? And is is safe to use custom environment…
Sergey Lukin
  • 471
  • 2
  • 17
4
votes
1 answer

How to docpad generate --env static for deployment in a subdirectory

I am sure I am not the only one stuck with having to deploy a static site to a subdirectory. in fact we have www.example.com and mobile.example.com as well as tablet.example.com. tablet and mobile are subdirectories of the main hosting... so in…
4
votes
1 answer

Get the next and previous file in collection with docpad

I'm making a portfolio and want to simply print a next & previous project link on each project detail page using DocPad (which uses Backbone collections). The code here is from the my template projects.html.eco. The @document object is the document…
3
votes
1 answer

How to highlight a piece of code in docpad/markdown

I'm using docpad + markdown for my blog. I use highlight.js plugin to format code examples. Formatting works fine and keywords are highlighted. Now, I want to emphasize some pieces of the code block with additional formatting, e.g. to show the…
Mikhail Shilkov
  • 34,128
  • 3
  • 68
  • 107
3
votes
1 answer

How to generate Semantic UI offline doc

It's been a long time I dident generate the docs (since 0.19.3 ), and it seems that the doc was separated. I dont know how to generate the docs, because it is not well explained: Before running server you will need to build your UI files for the…
Abdelouahab
  • 7,331
  • 11
  • 52
  • 82
3
votes
0 answers

docpad@6.69 install error "node ./cyclic.js"

This is the output I see when trying to install docpad. Error ambi@2.2.0 preinstall: node ./cyclic.js spawn ENOENT Failed at the ambi@2.2.0 preinstall script. This is most likely a problem with the ambi package, not with npm itself. Is this a…
LeadByDesign
  • 251
  • 1
  • 5
3
votes
0 answers

Use dots in Docpad topic file names without getting warnings?

I have a topic file with a version number in it, it is called dummy-v1.2.3.html.md.eco. When rendering this, I get warnings: info: Welcome to DocPad v6.59.6 (local installation: /export/suppoweb-src/docpad/node_modules/docpad) info: Contribute:…
Erlend Leganger
  • 395
  • 1
  • 2
  • 8
1
2 3
16 17