dmulholl / ark Goto Github PK
View Code? Open in Web Editor NEWA static website generator for people who enjoy the simpler things in life.
Home Page: https://www.dmulholl.com/docs/ark/master/
License: The Unlicense
A static website generator for people who enjoy the simpler things in life.
Home Page: https://www.dmulholl.com/docs/ark/master/
License: The Unlicense
As you can see from this debug output: https://gistcdn.rawgit.org/a-vrma/1c656d7ec6cd451a1259938d8ed170f1/e16ba97f1769a5ba150a83a65a70ab4a6e3047ad/index.html
zzz.html.html is the url but the actual file on disk is called zzz.html
I've added another extension to https://github.com/gvwilson/theme to generate an index, but I believe my approach has broken caching.
i
shortcode in lib/mccole/extensions/index.py
translates index entries into links, and as a side effect, records all index keys and the files they appear in. So far, so good."exit"
event handler to to read the generated HTML back in and insert the generated index.This approach is ugly; it also seems to confuse the file cache. Is there a better approach?
https://github.com/dmulholl/ivy/blob/main/ivy/site.py#L74
this line will throw an error ^
What is the preferred way to package a theme that includes templates and resources as well as extensions?
init
command to install bundled resources?I am trying to add Chinese fonts in graphite
theme. I have downloaded necessary fonts in fonts\
folder and add it to fonts.css
. After that, I tried to change graphite.css
file's 57th line (maybe different in your device), from font-family: 'Crimson Text', Georgia, serif;
to font-family: 'LXGW WenKai', sans-serif
, but it didn't work after build and serve.
I have:
.
`-- src
|-- a
| `-- index.html
|-- b
| `-- index.html
`-- index.html
I would like to produce:
.
`-- out
|-- a
| `-- index.html
|-- b
| `-- index.html
`-- index.html
so that /a/
and /b/
will be valid URLs. Right now, Ivy wants to generate:
.
`-- src
|-- a.html
|-- b.html
`-- index.html
Is there a way to force the desired behavior (so that old URLs won't break)?
I'm building an extension to include snippets of code in HTML pages. I'd like to store the snippets in the same directories as the page files, i.e., src/a/index.md
will include src/a/one.py
, src/a/two.py
, and so on - it's easier to keep track of them this way than creating res/a/one.py
, res/a/two.py
, and so on. If I try this right now, Ivy tries to templatize src/a/one.py
, which fails. Is there a way to tell it to copy some files below src
rather than templatizing them (e.g., based on file extension)? Or should I put them under res
?
The root directory of my project is littered with configuration files; requiring the Ivy configuration file to be called config.py
doesn't make its purpose obvious. One option would be to call it ivy.py
; another would be to load the .ivy
file as a Python source file; a third (my preferred option) would be to allow Ivy to read settings from an [ivy]
section of setup.cfg
.
I started working on that, then realized the order of operations makes it complicated: command-line args are parsed after the config file is loaded, so ivy --config filename
becomes "load default config, parse arguments based on that information, then load a new configuration". (The same thing makes it difficult to implement a "change directory before executing" flag similar to make's -C
flag.) Is this a change you'd be open to?
After I read the document of ivy, it seems like it does not support RSS.
Is there a way to put include files in themes, e.g., lib/whatever/inc
? I have several snippets that are shared between templates, and including them in the template directory rather that in the root inc
directory seems more portable. thx - Greg
PyYAML 6 was released in October 2021 and Jinja2 3.x in April 2022 it seems reasonable to me that Ivy updates to these versions.
Looking at release history of ivy on Pypi version 6.4.1 is shown as the latest version. Yet this repository's tags list includes 6.5.0
I've created an Ivy theme called mccole
in https://github.com/gvwilson/theme/, and would be very grateful for feedback. In particular, there are several places in the extensions where I check to see if the node
argument is empty, and if so, bail out; this tells me that I'm triggering on the wrong event, but I don't know which one(s) to watch for instead.
Similarly, the theme creates lookup tables under ivy.site.config["mccole"]
for its own use; in several places one extension checks to see if another extension has added information there yet or not, and if not, bails out - my instinct is that shouldn't be necessary if I listen for another event.
Finally:
lib/mccole/extensions/tables.py
). If there's a way to do this, I'd be very happy to rewrite the extension.And thanks for documenting Ibis and shortcodes
- they were easy to figure out.
p.s. it's my intention to use this theme (with better CSS) for https://teachtogether.tech/, https://stjs.tech/, and https://buildtogether.tech/ - all of the features are driven by those books' needs. I'm speaking with the https://pagedjs.org/ folks later this week to see about HTML-to-PDF generation as well.
I have a event handler registered for ivy.events.Event.EXIT
that copies figure files from src/*/whatever
to docs/*/whatever
. I want it to run for ivy build
and ivy watch
, but not for ivy clear
. What's the right way to ensure this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.