apas / athena Goto Github PK
View Code? Open in Web Editor NEWMinimalist static blog generator written in Python
Home Page: https://apas.github.io/athena/
Minimalist static blog generator written in Python
Home Page: https://apas.github.io/athena/
Not sure if I'm deviating from the workflow somehow, or whether this is indeed an error with the build script, but the 10-step workflow fails at Step 8.
(First command in the screenshot above just goes to show that the *.github.io
directory is not a repo, despite what the path suggests.)
It looks like the python athena.py build
overwrites the contents of the .git
folder in the build
dir.
Here's what the .git
folder looks like after Step 4):
total 24
drwxr-xr-x 10 kchrist staff 340 Jun 12 14:00 .
drwxr-xr-x 7 kchrist staff 238 Jun 12 14:00 ..
-rw-r--r-- 1 kchrist staff 23 Jun 12 14:00 HEAD
drwxr-xr-x 2 kchrist staff 68 Jun 12 14:00 branches
-rw-r--r-- 1 kchrist staff 260 Jun 12 14:00 config
-rw-r--r-- 1 kchrist staff 73 Jun 12 14:00 description
drwxr-xr-x 11 kchrist staff 374 Jun 12 14:00 hooks
drwxr-xr-x 3 kchrist staff 102 Jun 12 14:00 info
drwxr-xr-x 4 kchrist staff 136 Jun 12 14:00 objects
drwxr-xr-x 4 kchrist staff 136 Jun 12 14:00 refs
And here's what you get after Step 7:
total 0
drwxr-xr-x 5 kchrist staff 170 Jun 12 14:01 .
drwxr-xr-x 7 kchrist staff 238 Jun 12 14:00 ..
drwxr-xr-x 2 kchrist staff 68 Jun 12 14:00 branches
drwxr-xr-x 4 kchrist staff 136 Jun 12 14:00 objects
drwxr-xr-x 4 kchrist staff 136 Jun 12 14:00 refs
I know this is a stretch, but was wondering if there was an easy way to add support for Vega-Lite in athena. I have seen some projects like Visdown (https://visdown.com/) that give support for Markdown to have Vega-Lite graphs, but I don't really know how much work it would be to integrate this with athena.
Once again, thanks for making this, I really like it!
I'd like to put a link in the footer (actually to this repository), but editing the footer in the config.py
just seems to be translated into plain text, so I can't use Markdown or HTML. Any way around this?
I uploaded the build directory to mywebsite.com/blog, and instead of trying to find the static files in mywebsite.com/blog/static it looks for mywebsite.com/static.The same happens with the posts and pages (looks for /posts instead of /blog/posts), do you know what could I have done wrong?
Hi Apas! Saw your project on HN and decided to give it a try.. brew installing pandoc-sidenote fails, and i'm not in the headspace to learn to compile Haskell to get it running (from https://github.com/jez/pandoc-sidenote) :-)
I'm going to try Athena without it and see what happens..
I managed to install (not without difficulty) on my Macbook, and it works really nicely. Thanks a lot! I had hoped to set it up on my Windows machine as well, but I've just gone through several hours of trying (including what you might expect - Python with and without conda, fresh install of Python3, editing my PATH several times, compiling some of the dependencies from source in Haskell). All to no avail. Python 3.4, 3.6, and 3.7 all give the same error. Stack trace:
==> Creating the virtual environment. . .
The path python3 (from --python=python3) does not exist
Traceback (most recent call last):
File "install.py", line 49, in <module>
raise e
File "install.py", line 47, in <module>
proc.check_call(["virtualenv", "--python=python3", "env"])
File "C:\ProgramData\Miniconda3\envs\athena\lib\subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['virtualenv', '--python=python3', 'env']' returned non-zero exit status 3.
I can tell it has something to do with subprocess
, but beyond that I've no idea. Any help would be appreciated!
Hi,
Thanks for this blog template first. It is slick and very readable.
I updated pandoc through brew 2 days ago and it broke the build and now getting the following error:
RuntimeError: Pandoc died with exitcode "83" during conversion: b'[WARNING] Deprecated: --base-header-level. Use --shift-heading-level-by instead.\npandoc-sidenote: Error in $: Incompatible API versions: encoded with [1,21] but attempted to decode with [1,20].\nCallStack (from HasCallStack):\n error, called at ./Text/Pandoc/JSON.hs:107:64 in pandoc-types-1.20-Azr3zp3CsDMiPqJ5OI8N8:Text.Pandoc.JSON\nError running filter pandoc-sidenote:\nFilter returned error status 1\n'
I tried downgrading pandoc, pandoc-crossref, but the error still persisted. My python version is 3.8.3 and pandoc is now 2.10.
While working on deploy documentation after fixing #16 I came across a peculiar bug: Frozen-Flask and Flask-Static-Compress break if deployed to non-root domain.
If deployed to root domain: everything is fine and works as expected.
If deployed to non-root domain:
COMPRESSOR_STATIC_PREFIX
(which may require the full URL,)FREEZER_BASE_URL
(eg. domain.com/blog,) or doesn't convert url_for()
links if FREEZER_BASE_URL
is assigned only the root domain,I will investigate further. Perhaps instead of Flask-Static-Compress athena could use jac directly should it work together with Frozen-Flask. An easy fix would be to simply drop minification support, however I'm interested in keeping it—at least for now. Open to comments.
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.