You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid
2aa1fe7267
|
10 years ago | |
---|---|---|
cmr-pelican-theme | 10 years ago | |
content | 10 years ago | |
.gitignore | 10 years ago | |
README.md | 10 years ago | |
_nb_header.html | 10 years ago | |
fabfile.py | 10 years ago | |
pelicanconf.py | 10 years ago | |
publishconf.py | 10 years ago |
README.md
cyborg-pelican
My first Pelican repository.
Installing
pip install pelican markdown
Running
My workflow is like this:
I change directory to my copy of this repository.
From there, I check out a copy of my gh-pages branch (of this repository) into the output
directory.
I remove content in the output
directory.
I run pelican content
to generate a static site from the content in the content directory.
This generates static content in output
.
I test the site by doing:
$ cd output
$ python -m SimpleHTTPServer
If I'm happy with the site, then from the output
directory, I run:
$ git add * && git commit -a -m 'adding everything' && git push origin gh-pages
Finally, I update the source files, by running the same series of commands from the parent (source) directory:
$ cd ..
$ git add * && git commit -m 'update' && git push origin master