Comments (6)
Hi,
On 26 February 2014 17:40, Roberto Alsina [email protected] wrote:
I am trying to add support for doconce in http://getnikola.com and ran
into something:
Interesting! Especially if we can have html with MathJax.
I can't find a way to call doconce with a specific filename as input and a
filename as output.So, if you can describe the command line I should use to turn posts/foo.do
into cache/posts/foo.html it would be much appreciated :-)
You can do
doconce format html posts/foo.do.txt
mv foo.html cache/posts
I think you can also do
doconce format html posts/foo.do.txt --html_output=cache/posts/foo
Best regards,
Hans Petter
Reply to this email directly or view it on GitHubhttps://github.com//issues/2
.
from doconce.
On 26/02/14 18:13, Hans Petter Langtangen wrote:
Hi,
On 26 February 2014 17:40, Roberto Alsina [email protected]
wrote:I am trying to add support for doconce in http://getnikola.com and ran
into something:Interesting! Especially if we can have html with MathJax.
I can't find a way to call doconce with a specific filename as input
and a
filename as output.So, if you can describe the command line I should use to turn
posts/foo.do
into cache/posts/foo.html it would be much appreciated :-)You can do
doconce format html posts/foo.do.txt
mv foo.html cache/posts
Because of different things, double extensions kinda don't work in
Nikola. So, I used posts/foo.doconce and it ends producing
posts/foo..html but if I use posts/foo.do it produces posts.html
Since the output name generation seems fragile and rather buggy, I am
hesitant to depend on guessing it right.
$ doconce format html posts/foo.do
translate doconce text in posts/foo.do
output in posts.html
$ doconce format html posts/foo.doconce
translate doconce text in posts/foo.doconce
output in posts/foo..html
I think you can also do
doconce format html posts/foo.do.txt --html_output=cache/posts/foo
Doesn't seem to do anything:
$ doconce format html posts/foo.do --html_output=cache/posts/foo
translate doconce text in posts/foo.do
output in posts.html
from doconce.
OK, I demand that the extension is .do.txt, and since you don't use this
extension, I think the filename generation becomes buggy.
I can try to fix this such that also .do works. I'll write you back.
Best,
Hans Petter
On 26 February 2014 23:39, Roberto Alsina [email protected] wrote:
On 26/02/14 18:13, Hans Petter Langtangen wrote:
Hi,
On 26 February 2014 17:40, Roberto Alsina [email protected]
wrote:I am trying to add support for doconce in http://getnikola.com and ran
into something:Interesting! Especially if we can have html with MathJax.
I can't find a way to call doconce with a specific filename as input
and a
filename as output.So, if you can describe the command line I should use to turn
posts/foo.do
into cache/posts/foo.html it would be much appreciated :-)You can do
doconce format html posts/foo.do.txt
mv foo.html cache/postsBecause of different things, double extensions kinda don't work in
Nikola. So, I used posts/foo.doconce and it ends producing
posts/foo..html but if I use posts/foo.do it produces posts.html
Since the output name generation seems fragile and rather buggy, I am
hesitant to depend on guessing it right.$ doconce format html posts/foo.do translate doconce text in posts/foo.do output in posts.html
$ doconce format html posts/foo.doconce translate doconce text in posts/foo.doconce output in posts/foo..html
I think you can also do
doconce format html posts/foo.do.txt --html_output=cache/posts/foo
Doesn't seem to do anything:
$ doconce format html posts/foo.do --html_output=cache/posts/foo translate doconce text in posts/foo.do output in posts.html
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36186880
.
from doconce.
If you do a git pull and new install, doconce format allows files with
extension .do only. The --html_output will not function if the output has a
directory. That is, you must generate the output in the same directory as
the source and then use the operating system or os.rename or similar to
move the generated file(s).
doconce format html posts/foo.do
mv posts/foo.do cache/posts
See if this helps.
Best,
Hans Petter
On 26 February 2014 23:39, Roberto Alsina [email protected] wrote:
On 26/02/14 18:13, Hans Petter Langtangen wrote:
Hi,
On 26 February 2014 17:40, Roberto Alsina [email protected]
wrote:I am trying to add support for doconce in http://getnikola.com and ran
into something:Interesting! Especially if we can have html with MathJax.
I can't find a way to call doconce with a specific filename as input
and a
filename as output.So, if you can describe the command line I should use to turn
posts/foo.do
into cache/posts/foo.html it would be much appreciated :-)You can do
doconce format html posts/foo.do.txt
mv foo.html cache/postsBecause of different things, double extensions kinda don't work in
Nikola. So, I used posts/foo.doconce and it ends producing
posts/foo..html but if I use posts/foo.do it produces posts.html
Since the output name generation seems fragile and rather buggy, I am
hesitant to depend on guessing it right.$ doconce format html posts/foo.do translate doconce text in posts/foo.do output in posts.html
$ doconce format html posts/foo.doconce translate doconce text in posts/foo.doconce output in posts/foo..html
I think you can also do
doconce format html posts/foo.do.txt --html_output=cache/posts/foo
Doesn't seem to do anything:
$ doconce format html posts/foo.do --html_output=cache/posts/foo translate doconce text in posts/foo.do output in posts.html
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36186880
.
from doconce.
Hi,
I have looked more at Nikola and it looks very useful. Have you succeeded
in integrating doconce documents as alternative to markdown and rst?
Best,
Hans Petter
On 27 February 2014 11:40, Hans Petter Langtangen [email protected] wrote:
If you do a git pull and new install, doconce format allows files with
extension .do only. The --html_output will not function if the output has a
directory. That is, you must generate the output in the same directory as
the source and then use the operating system or os.rename or similar to
move the generated file(s).doconce format html posts/foo.do
mv posts/foo.do cache/postsSee if this helps.
Best,
Hans PetterOn 26 February 2014 23:39, Roberto Alsina [email protected]:
On 26/02/14 18:13, Hans Petter Langtangen wrote:
Hi,
On 26 February 2014 17:40, Roberto Alsina [email protected]
wrote:I am trying to add support for doconce in http://getnikola.com and
ran
into something:Interesting! Especially if we can have html with MathJax.
I can't find a way to call doconce with a specific filename as input
and a
filename as output.So, if you can describe the command line I should use to turn
posts/foo.do
into cache/posts/foo.html it would be much appreciated :-)You can do
doconce format html posts/foo.do.txt
mv foo.html cache/postsBecause of different things, double extensions kinda don't work in
Nikola. So, I used posts/foo.doconce and it ends producing
posts/foo..html but if I use posts/foo.do it produces posts.html
Since the output name generation seems fragile and rather buggy, I am
hesitant to depend on guessing it right.$ doconce format html posts/foo.do translate doconce text in posts/foo.do output in posts.html
$ doconce format html posts/foo.doconce translate doconce text in posts/foo.doconce output in posts/foo..html
I think you can also do
doconce format html posts/foo.do.txt --html_output=cache/posts/foo
Doesn't seem to do anything:
$ doconce format html posts/foo.do --html_output=cache/posts/foo translate doconce text in posts/foo.do output in posts.html
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36186880
.
from doconce.
I got sidetracked by other tasks, but I may take another shot at it this sunday night.
from doconce.
Related Issues (20)
- Collapse solutions, answers, hints don't work on Chrome for iOS HOT 3
- Support re: Unknown escapes in repl consisting of '\' and an ASCII letter now are errors.
- http --> https for netdna.bootstrapcdn.com HOT 3
- PYPI package seems to have wrong preprocess.py dependency HOT 1
- BIBFILE and publish issues? HOT 2
- conda paver via doconce conflicts with tensorflow HOT 2
- Sphinx 1.8.4 - Build Process Error HOT 14
- How to insert labels and caption in Tables? HOT 1
- Pagebreak for PDF HOT 1
- New version of book built with doconce HOT 1
- error in windows 10 HOT 12
- Add answers_at_end option and review behavior for solutions_at_end HOT 1
- Error: test for illegal option: --solutions at end without underscores
- Syntax example on web page is broken. HOT 1
- Broken links to Mako in documentation HOT 1
- Mistake in quickref.html about formatting the exercise section HOT 1
- Add new commands to hide answers/solutions or move them to end of document
- Using sudo pip install is regarded as bad practice and fails on Python virtual environments HOT 1
- Placement of solution in running text HOT 2
- ispell isn't anymore in ubuntu/mint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doconce.