Giter Site home page Giter Site logo

Comments (5)

saimn avatar saimn commented on August 16, 2024

Having source == target is currently not possible as I check for this to avoid problems: https://github.com/saimn/sigal/blob/master/sigal/__init__.py#L115
I'm not sure if this should be doable or not ... I think it is more safe to have a directory like

├── source
├── _build
└── sigal.conf.py

However, it is a good idea to have a setting to ignore directory in the source directory.

from sigal.

lkraav avatar lkraav commented on August 16, 2024

In our use case, bunch of design sources all sit in ~/public_html/design/. It'd be nice to keep the "top-level" in there clean, as in just 1 directory == 1 project, and also have sigal.conf.py sitting right there.

$ sigal build project project

could then maybe re-use the built-in "originals" feature to:

  • move everything to originals/ right away
  • programmatically change source -> source/originals/
  • continue building index.html and rest of the stuff directly in "project"

Feels like it could work without a huge modification. Wdyt?

from sigal.

saimn avatar saimn commented on August 16, 2024

Having the target directory in the source one and ignoring it during the build should be easy to do, but reusing the "originals" images is more complicated. I will think about it, but the idea of sigal (and other static generators) is to split the inputs and the outputs, so can delete the outputs, and you can serve only the outputs with your webserver.

from sigal.

rixx avatar rixx commented on August 16, 2024

Regardless of the input == output debate, it would be rather nice to be able to ignore directories in your source directory, maybe via a custom prefix?

from sigal.

saimn avatar saimn commented on August 16, 2024

@rixx : this has been implemented in #63. I have no plan to support having source == target so I'm going to close this issue.

from sigal.

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.