Giter Site home page Giter Site logo

Comments (3)

folletto avatar folletto commented on August 23, 2024

In fact, it's not supported. :)

Why do you need that? :)

from baker.

MacBoy avatar MacBoy commented on August 23, 2024

My suggestion is to be as flexible as possible. Directories within the "book" content are useful to group related files. Why are directories not allowed -- is there a technical reason or is it for another reason?

Here is my explanation on how we need and use directories. Otherwise, we would have to develop post-processing scripts, which can lead to silly errors.

We intend on using Baker as a "Product Catalog", not as an eBook or a Magazine.

Our product information is inside a Content Management System that uses "directories" as a way of grouping related information. An export out of that CMS generates product directories. Inside each product directory are the files for that particular product.

A table of contents provides an easy to browse product index -- index_01.html The index file has a list of each product. The product links point to the overview.html file within each of the product directories.

Each product directory has four pages, with these (same) filenames:

  • overview.html
  • specifications.html
  • features.html
  • pictures.html

Thus, our file structure is:

index01.html

product1 / overview.html
product1 / specifications.html
product1 / features.html
product1 / pictures.html

product2 / overview.html
product2 / specifications.html
product2 / features.html
product2 / pictures.html

etc. etc. for the remaining products ...

Please re-consider the ban on directories. The beauty of Baker is that it is open-ended, allowing it to hold content for many different purposes.

Thank you!

from baker.

folletto avatar folletto commented on August 23, 2024

It's not a ban. It's both a choice and a technical limitation.
For the complete reason, check the hPub topic #13, where the future implementation of the format has the answer to your problem. ;)

The brief answer is: it's going to be possible whent the manifest file is going to be implemented, it's not going to be possible with the automatic ordering because to do that we would be less flexible, disallowing basically the possibility of not including files, an actual requirement to be more flexible and allow some kind of in-page dynamics with javascript. :)

from baker.

Related Issues (20)

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.