Comments (6)
Ho tu sais ici, c'est tranquille 😃
from markdown-to-document.
Thanks for opening this issue, I agree that it would be useful to add this kind of feature.
However, it can be a bit tricky to implement. If I change the behavior of the --dest
option, renaming the output file will be available if there's only one source file (for bulk processing, we would need some kind of output filename pattern). The tool must also be able to assert whether --dest
option value should be used as a directory or as an output filename (--dest
option value ends with .html
?). I wouldn't want to add this kind of inconsistent behavior to the CLI. Do you see a better way to implement this feature?
I'm glad to see that this tool is used by other people :)
from markdown-to-document.
I guess you could add a file name template option ? And you provide only an index number as parameter to do something light for now ?
I'm glad to see that this tool is used by other people :)
My pleasure, it's easy and it works :)
from markdown-to-document.
I'm pretty busy right now so I won't be able to release this feature very quickly.
Until this feature is implemented, you could use the following workaround:
mdtodoc README.md --dest dist/ && mv dist/README.html dist/index.html
This solution won't work with the watch feature, but at least, it will do the job for simple compilations and it doesn't require any additional library, just some good old Bash/Shell 😉
from markdown-to-document.
Because I use cpy-cli
for other purposes in my build, I use it to rename the file
cpy README.html ./dist --rename=index.html
(PS: sont toujours sous l'eau ces Toulousains 😄)
from markdown-to-document.
It requires an additional library but if you're already using it in your build process, that's okay!
PS : je ne saurais pas dire si c'est une spécialité de la région, est-ce vraiment plus tranquille du côté de Bordeaux ? 😄
from markdown-to-document.
Related Issues (6)
- text in mermaid diagrams show incomplete HOT 1
- Syntax highlighting not colouring code block HOT 1
- No automatic syntax highlighting for code blocks HOT 2
- them - solarized dark - as suggested in your documentation causes error HOT 1
- Scaling - retaining original directories in output would be very useful HOT 2
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 markdown-to-document.