Giter Club home page Giter Club logo

Comments (6)

mgohin avatar mgohin commented on May 27, 2024 1

Ho tu sais ici, c'est tranquille 😃

from markdown-to-document.

GaelGirodon avatar GaelGirodon commented on May 27, 2024

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.

mgohin avatar mgohin commented on May 27, 2024

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.

GaelGirodon avatar GaelGirodon commented on May 27, 2024

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.

mgohin avatar mgohin commented on May 27, 2024

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.

GaelGirodon avatar GaelGirodon commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.