GithubHelp home page GithubHelp logo

apas / athena Goto Github PK

View Code? Open in Web Editor NEW
336.0 336.0 23.0 1.23 MB

Minimalist static blog generator written in Python

Home Page: https://apas.github.io/athena/

Python 22.45% JavaScript 7.69% CSS 51.91% HTML 16.36% TeX 1.59%
flask pandoc python tufte-css

athena's People

Contributors

apas avatar cuchoi avatar f--f avatar frstp64 avatar kchristidis avatar lordgrenville avatar thosegrapefruits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

athena's Issues

Deploy workflow for Github Pages doesn't work

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.

screen shot 2016-06-12 at 13 55 27

(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

Using HTML in footer?

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?

Problem with relative URL

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?

Unable to install in Windows

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!

With recent brew update; pandoc-sidenote no longer is working

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.

Deploying athena in a subdirectory

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:

  • Flask-Static-Compress works as expected if used with COMPRESSOR_STATIC_PREFIX (which may require the full URL,)
  • Frozen-Flask raises an exception about a trailing slash if assigned the domain subdirectory in FREEZER_BASE_URL (eg. domain.com/blog,) or doesn't convert url_for() links if FREEZER_BASE_URL is assigned only the root domain,
  • Frozen-Flask works as expected if Flask-Static-Compress support is dropped.

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.

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.