Comments (5)
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.
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.
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.
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.
@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)
- Problems with UTF8 characters on folders HOT 1
- 2.3: Issues with tests HOT 2
- Can't decrypt an encrypted gallery HOT 2
- tests fail with pillow release 10.0.0 HOT 8
- Some files have failed to be processed HOT 5
- KeyError: '.png'
- ImportError: cannot import name 'get_terminal_size' from 'click' HOT 3
- Album with hundreds of thumbnails crash Safari on iOS devices HOT 3
- 2.4: Themes are not installed, leading to failing tests HOT 5
- Fatal error: This version of Galleria requires classic theme version 1.6 or later HOT 1
- Changes to the log level only affect the 'sigal' logger HOT 3
- Document sort order options HOT 3
- left/right arrows even when using a touchscreen HOT 1
- mode for updating a single (sub-)album HOT 1
- boto should be removed from optional dependencies HOT 1
- Demos don't resolve (DNS issue) HOT 1
- KeyError after adding a directory to exclude patterns HOT 2
- Feature Request: Left side folder navigation HOT 1
- Image information ignores markdown syntax HOT 1
- Non-py files not getting installed when installing release tarball HOT 3
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 sigal.