uhnomoli / mynt Goto Github PK
View Code? Open in Web Editor NEWA static site generator.
Home Page: https://mynt.uhnomoli.com/
License: Other
A static site generator.
Home Page: https://mynt.uhnomoli.com/
License: Other
I got a template syntax error from Jinja, but (omitting the traceback) the exception raised looks like this:
File "<unknown>", line 8, in template
jinja2.exceptions.TemplateSyntaxError: expected token ',', got 's'
which is not terribly informative. I don't even know what template file the error was in, and what is "<unknown>"
?
There is some evidence that Jinja exceptions have filename
and lineno
attributes with useful information; mynt should expose that information to make it easier to track down errors like this.
Calling mynt _site
gives me a traceback:
File "/usr/bin/mynt", line 9, in <module>
load_entry_point('mynt==0.1.7', 'console_scripts', 'mynt')()
File "/usr/lib/python3.2/site-packages/mynt/main.py", line 13, in main
Mynt().generate()
File "/usr/lib/python3.2/site-packages/mynt/core.py", line 57, in __init__
self.opts = self._get_opts(args)
File "/usr/lib/python3.2/site-packages/mynt/core.py", line 118, in _get_opts
for option, value in vars(parser.parse_args(args)).iteritems():
Saying AttributeError: 'dict' object has no attribute 'iteritems'
I'm using Python3.2 if that's an issue.
Thanks for Mynt, I think it is a great static site generator. I am trying to include MathJax into Markdown. Can you point me to resources that can help me modify Mynt so as to recognize MathJax markup which is LaTeX code enclosed between "$" or "$$"., which must be left unmodified. Thanks in advance.
This is a clean install of Arch Linux and Python 3.3 any ideas?
'''
Downloading/unpacking argh>=0.8.1 (from watchdog->mynt)
Downloading argh-0.23.3.tar.gz
Running setup.py egg_info for package argh
Traceback (most recent call last):
File "", line 16, in
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in
decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in
position 103: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 16, in
File "/usr/lib/python3.3/encodings/ascii.py", line 26, in deco
de
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in posi
tion 103: ordinal not in range(128)
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tm
p/pip_build_root/argh
Storing complete log in /root/.pip/pip.log
'''
If there is a special character in the headline feeds no longer work.
They arent valid anymore. Chrome says there is an issue.
Hi
Love the project. Got my blog up and running in a nice workflow in something like three hours.
Currently I'm trying to fix up the archive and having a problem.
As I make changes I can see my changes in specific Archive sections/years.
See: http://edge.subterra.se/archives/2012/
But I have found no way to tame the template for the general archives page. My changes to the archive.html template seem to have no effect and I have no idea where the HTML is coming from as it is clearly not from the archive template setting (archive.html).
See the problematic and unstyled page: http://edge.subterra.se/archives/
What am I missing? I didn't see anything in the docs touching on this.
Thankful for any assistance.
mynt currently works only for Python 2.7.x as it uses some latest additions like:
OrderedDict
flags
keyword argument to re.sub
**d
when d
has unicode keysThese must be fixed to be able to use mynt on older versions of Python. Python2.6 is the default version available on Debian stable, I think it'll be useful to support it.
Hi, it is not clear (to me at least :P ) how Mynt manages pages. I mean, I saw other static blog engines or using a folder pages (from which create a page global variable) or just parsing .html
file in the root.
I took a look at your website code and, essentially, it seems you are using just .html
files.
Is it possible, instead, to have some sort of automated system to parse and generate pages in Mynt?
About that, if I correctly understood there is no automatic way to create pages, what about to extend Mynt with another special folder _pages
to automatically create pages? It could container a folder for each page such as about/
and each folder could contain an index.html
file representing the real file to be parsed from which would be generated the about.html
page. This could also offer the opportunity to have subpages just adding another subPageName/index.html
file inside a parent folder alongside its index.html file.
The pages folders structure would look like this:
_pages/
about/
subPageName/
What do you think about it? It would be really useful to have such a system in Mynt. Hope it makes sense.
Just set up a new install and ran an init on a new site. When I tried to run mynt gen -f _site
, I got the following... ImportError: No module named docutils
.
It seems like docutils should be are part of mynt. Since it is a small fix, I am going to submit an PR.... feel free to reject, as I do not understand all things mynt.
Right now mynt uses the order that posts were last updated to order them. Why not have a date
variable in the frontmatter?
Hello,
The "excerpt" feature seems to be not working as I would expect - not sure if this is intended or not. Specifically, it seems to only work if the first <p>
tag starts at the very beginning of the post. Here's an example - if you take the regex here here's what you get:
>>> re.search(r'\A.*?(?:<p>(.+?)</p>)?', "<p>Excerpt at beginning</p> more text <p>blah</p>", re.M | re.S).groups()
('Excerpt at beginning',)
>>> re.search(r'\A.*?(?:<p>(.+?)</p>)?', "Stuff before the <p>Excerpt at beginning</p> more text <p>blah</p>", re.M | re.S).groups()
(None,)
If this isn't intended, I can try and fix it, if you want.
Also, a bit of a side-note: the regex is case-sensitive, so it doesn't work with upper-case <p>
tags. This isn't so important, though.
>>> re.search(r'\A.*?(?:<p>(.+?)</p>)?', "<P>Excerpt at beginning</P> more text <p>blah</p>", re.M | re.S).groups()
(None,)
Thanks!
misaka on Windows requires MS Visual Studio, which is impossible to get for most user systems. Is is possible to use alternative pure Python library and add misaka as an optional dependency?
If I use this kind of block in templates/post.html
, similar to the one in examples:
{% if item.tags %}
<dt>Tags</dt>
<dd>
<div>
{% for tag in item.tags %}
<a href="{{ get_url(tag.url) }}">
{{ tag.name }}<span class="tag-count">{{ tag.count }}</span>
</a>
{% if not loop.last %}
<span>,</span>
{% endif %}
{% endfor %}
</div>
</dd>
{% endif %}
I get this error:
File "/Users/shamansir/Workspace/blog/.cache/en/_templates/layout.html", line 28, in top-level template code
{% block content %}{% endblock %}
File "/Users/shamansir/Workspace/blog/.cache/en/_templates/post.html", line 42, in block "content"
<a href="{{ get_url(tag.url) }}" rel="tag" title="Posts with '{{ tag }}' tag">
File "/Library/Python/2.7/site-packages/mynt-0.3.1-py2.7.egg/mynt/renderers/jinja.py", line 79, in _get_url
return Url.join(*parts)
File "/Library/Python/2.7/site-packages/mynt-0.3.1-py2.7.egg/mynt/utils.py", line 85, in join
url = '/'.join(args)
TypeError: sequence item 1: expected string or Unicode, Undefined found
make: *** [build] Error 1
I installed mynt in a virtualenv on my Mac on 10.8.2 and all the dependencies seemed to install just fine.
After running mynt gen blog
, I get this error.
>> Parsing
>> Processing
>> Rendering
Traceback (most recent call last):
File "/usr/local/bin/mynt", line 8, in <module>
load_entry_point('mynt==0.2.2', 'console_scripts', 'mynt')()
File "/Library/Python/2.7/site-packages/mynt/main.py", line 13, in main
Mynt()
File "/Library/Python/2.7/site-packages/mynt/core.py", line 67, in __init__
self.opts['func']()
File "/Library/Python/2.7/site-packages/mynt/core.py", line 449, in generate
self._generate()
File "/Library/Python/2.7/site-packages/mynt/core.py", line 393, in _generate
self._render()
File "/Library/Python/2.7/site-packages/mynt/core.py", line 361, in _render
self._pygmentize(self.renderer.render(template))
File "/Library/Python/2.7/site-packages/mynt/renderers/jinja.py", line 93, in render
return template.render(**vars_)
File "/Library/Python/2.7/site-packages/jinja2/environment.py", line 894, in render
return self.environment.handle_exception(exc_info, True)
File "/path/to/system/python2.7/site-packages/jinja2/testsuite/res/templates/broken.html", line 2, in top-level template code
{{ fail() }}
jinja2.exceptions.UndefinedError: 'fail' is undefined
Looks like other people were/are having the same issue?
Of course, only if you feel that this candidate is fit to be there. Here's the link: http://shamansir.github.com/blog/
I was hoping to use mynt
as a simple static site generator with Pandoc as the markdown parser. Is this possible?
got some strange error while building houdini.py on windows:
running build
running build_ext
building 'houdini' extension
c:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe /c /nologo /Ox /MD /
W3 /GS- /DNDEBUG -IC:\Python27\include -IC:\Users\user\workspace\env_mynt\PC /Tc
src/houdini.py.c /Fobuild\temp.win32-2.7\Release\src/houdini.py.obj
houdini.py.c
src/houdini.py.c(20) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(21) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(21) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(21) : warning C4024: 'houdini_escape_html0' : different types f
or formal and actual parameter 1
src/houdini.py.c(24) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(24) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(24) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(24) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(27) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(27) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(27) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(32) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(44) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(45) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(45) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(45) : warning C4024: 'houdini_unescape_html' : different types
for formal and actual parameter 1
src/houdini.py.c(48) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(48) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(48) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(48) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(51) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(51) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(51) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(52) : warning C4133: 'return' : incompatible types - from 'PyOb
ject *' to 'int *'
src/houdini.py.c(56) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(68) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(69) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(69) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(69) : warning C4024: 'houdini_escape_uri' : different types for
formal and actual parameter 1
src/houdini.py.c(72) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(72) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(72) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(72) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(75) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(75) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(75) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(76) : warning C4133: 'return' : incompatible types - from 'PyOb
ject *' to 'int *'
src/houdini.py.c(80) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(92) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(93) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(93) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(93) : warning C4024: 'houdini_escape_url' : different types for
formal and actual parameter 1
src/houdini.py.c(96) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(96) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(96) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(96) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(99) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(99) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(99) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(100) : warning C4133: 'return' : incompatible types - from 'PyO
bject *' to 'int *'
src/houdini.py.c(104) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(116) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(117) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(117) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(117) : warning C4024: 'houdini_unescape_uri' : different types
for formal and actual parameter 1
src/houdini.py.c(120) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(120) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(120) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(120) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(123) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(123) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(123) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(124) : warning C4133: 'return' : incompatible types - from 'PyO
bject *' to 'int *'
src/houdini.py.c(128) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(140) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(141) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(141) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(141) : warning C4024: 'houdini_unescape_url' : different types
for formal and actual parameter 1
src/houdini.py.c(144) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(144) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(144) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(144) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(147) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(147) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(147) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(148) : warning C4133: 'return' : incompatible types - from 'PyO
bject *' to 'int *'
src/houdini.py.c(152) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(164) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(165) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(165) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(165) : warning C4024: 'houdini_escape_js' : different types for
formal and actual parameter 1
src/houdini.py.c(168) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(168) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(168) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(168) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(171) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(171) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(171) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(172) : warning C4133: 'return' : incompatible types - from 'PyO
bject *' to 'int *'
src/houdini.py.c(176) : error C2143: syntax error : missing '{' before '*'
src/houdini.py.c(188) : error C2143: syntax error : missing ';' before 'type'
src/houdini.py.c(189) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(189) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(189) : warning C4024: 'houdini_unescape_js' : different types f
or formal and actual parameter 1
src/houdini.py.c(192) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(192) : error C2223: left of '->data' must point to struct/union
src/houdini.py.c(192) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(192) : error C2223: left of '->size' must point to struct/union
src/houdini.py.c(195) : error C2065: 'ob' : undeclared identifier
src/houdini.py.c(195) : warning C4047: 'function' : 'buf *' differs in levels of
indirection from 'int'
src/houdini.py.c(195) : warning C4024: 'bufrelease' : different types for formal
and actual parameter 1
src/houdini.py.c(196) : warning C4133: 'return' : incompatible types - from 'PyO
bject *' to 'int *'
src/houdini.py.c(200) : error C2061: syntax error : identifier 'houdini_methods'
src/houdini.py.c(200) : error C2059: syntax error : ';'
src/houdini.py.c(200) : error C3409: empty attribute block is not allowed
src/houdini.py.c(200) : error C2513: '/*global*/ ' : no variable declared before
'='
src/houdini.py.c(236) : error C2065: 'houdini_methods' : undeclared identifier
src/houdini.py.c(236) : warning C4047: 'function' : 'PyMethodDef *' differs in l
evels of indirection from 'int'
src/houdini.py.c(236) : warning C4024: 'Py_InitModule4' : different types for fo
rmal and actual parameter 2
error: command '"c:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe"' f
ailed with exit status 2
----------------------------------------
Command C:\Users\user\workspace\env_mynt\Scripts\python.exe -c "import setuptool
s;__file__='C:\\Users\\user\\workspace\\env_mynt\\build\\houdini.py\\setup.py';e
xec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" ins
tall --record c:\users\user\appdata\local\temp\pip-qaxwfy-record\install-record.
txt --single-version-externally-managed --install-headers C:\Users\user\workspac
e\env_mynt\include\site\python2.7 failed with error code 1 in C:\Users\user\work
space\env_mynt\build\houdini.py
Storing complete log in C:\Users\user\pip\pip.log
Hello,
What do you think about adding support for automatic feed generation (i.e. Atom, RSS)? If there's interest, I'd be happy to work on support for this.
Thanks!
Is it possible to configure Mynt to use custom Jinja2 filters?
Like the project, I want to be able to display some data and interactive chart as part of a demo page for a resume/portfolio and while I can post a chart an interactive chart would add a little more to it.
I might be doing something wrong, but here is what I'm getting when trying to install mynt. I have python 3.2 and 2.7 and I have mingw32. I have python 3.2 and mingw32 in %PATH%.
C:\Users\Caleb> pip install mynt
Downloading/unpacking git+https://github.com/Anomareh/mynt.git
Cloning https://github.com/Anomareh/mynt.git to c:\users\caleb\appdata\local\temp\pip-8z360g-build
Running setup.py egg_info for package from git+https://github.com/Anomareh/mynt.git
Requirement already satisfied (use --upgrade to upgrade): Jinja2 in c:\python32\lib\site-packages (from mynt==0.2.3-dev)
Downloading/unpacking misaka>=1.0.2 (from mynt==0.2.3-dev)
Running setup.py egg_info for package misaka
Downloading/unpacking Pygments (from mynt==0.2.3-dev)
Running setup.py egg_info for package Pygments
Requirement already satisfied (use --upgrade to upgrade): PyYAML in c:\python32\lib\site-packages (from mynt==0.2.3-dev)
Downloading/unpacking watchdog (from mynt==0.2.3-dev)
Running setup.py egg_info for package watchdog
no previously-included directories found matching 'docs\source\_themes\.git*'
Downloading/unpacking argh>=0.8.1 (from watchdog->mynt==0.2.3-dev)
Running setup.py egg_info for package argh
Downloading/unpacking pathtools (from watchdog->mynt==0.2.3-dev)
Running setup.py egg_info for package pathtools
Installing collected packages: misaka, Pygments, watchdog, mynt, argh, pathtools
Running setup.py install for misaka
building 'misaka' extension
error: Unable to find vcvarsall.bat
Complete output from command C:\python32\python.exe -c "import setuptools;__file__='C:\\Users\\Caleb\\build\\misaka\\setup.py';exec(compile(open(__file__).r
ead().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record c:\users\caleb\appdata\local\temp\pip-x_ryt4-record\instal
l-record.txt:
running install
running build
running build_ext
building 'misaka' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command C:\python32\python.exe -c "import setuptools;__file__='C:\\Users\\Caleb\\build\\misaka\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n
'), __file__, 'exec'))" install --single-version-externally-managed --record c:\users\caleb\appdata\local\temp\pip-x_ryt4-record\install-record.txt failed with
error code 1 in C:\Users\Caleb\build\misaka
Storing complete log in C:\Users\Caleb\AppData\Roaming\pip\pip.log
I tried various methods described here and here, but to no avail.
Any help is appreciated :-)
Hey @Anomareh - I just wanted to say that the latest Mynt comes prepackaged with an awesome demo theme. I stumbled across it when starting up another mynt project :)
Just wanted to give a ^5!
I got the following error when mynt serve
-ing from a path that contained an "ì". After I renamed the folder in question the problem went away. This was when serving the example project.
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 56662)
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/usr/local/lib/python2.7/site-packages/mynt/server.py", line 37, in finish_request
self.RequestHandlerClass(request, client_address, self.base_url, self)
File "/usr/local/lib/python2.7/site-packages/mynt/server.py", line 18, in __init__
SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 638, in __init__
self.handle()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/usr/local/lib/python2.7/site-packages/mynt/server.py", line 23, in do_GET
SimpleHTTPRequestHandler.do_GET(self)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 44, in do_GET
f = self.send_head()
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 66, in send_head
path = self.translate_path(self.path)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 160, in translate_path
path = os.path.join(path, word)
File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 27: ordinal not in range(128)
----------------------------------------
I noticed after switching to Vim as my post editor that all newline characters are translated into line breaks, which, according to Gruber, isn't supposed to happen.
Not sure if this is mynt's doing or the parser of choice's...
With the
posts_url: / < year > / < month > / < title > /
set, the directories created are exactly what the title ist, but not lower case. this causes a lot of problems with old links.
Had to put spaces in between, because of this field formatting.
I'm not yet sure what to make of this but the site generates just fine. I just get an exception while serving it.
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 56416)
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/Library/Python/2.7/site-packages/mynt/server.py", line 37, in finish_request
self.RequestHandlerClass(request, client_address, self.base_url, self)
File "/Library/Python/2.7/site-packages/mynt/server.py", line 18, in __init__
SimpleHTTPRequestHandler.__init__(self, request, client_address, server)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 337, in handle
self.handle_one_request()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 325, in handle_one_request
method()
File "/Library/Python/2.7/site-packages/mynt/server.py", line 23, in do_GET
SimpleHTTPRequestHandler.do_GET(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 44, in do_GET
f = self.send_head()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 89, in send_head
self.send_error(404, "File not found")
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 361, in send_error
self.log_error("code %d, message %s", code, message)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 433, in log_error
self.log_message(format, *args)
File "/Library/Python/2.7/site-packages/mynt/server.py", line 26, in log_message
logger.debug('>> [{0}] {1}: {2}'.format(self.log_date_time_string(), self.address_string(), ' '.join(args)))
TypeError: sequence item 0: expected string or Unicode, int found
----------------------------------------
Not sure if this is a question about the codebase or just something that's not explained in the documentation...
What about HTML (rather than Markdown) posts? I tried changing 'markup' in config.yml, but misaka does not parse HTML. Is there a slot-in replacement for misaka? Or another way around this?
Hi there,
This is "wishlist", dunno how hard would it be to implement it: One of the things I hate most with any site is that assets belonging to one posts can't be kept with it.
I mean, if I write a post with some images or files that go with it I am always forced to put them "somewhere else" and link.
How hard would be something like, for example, to have a "self contained post" You'd have:
Calls to get_asset() would first search for assets in the post folder, then on the assets folder.
Site generation would copy used assets to a common media folder and place the post on YYYY-MM-DD-My_post_url.html
That'd be awesome.
Disclaimer: I am not a mynt user but considering it to rewrite my personal site :)
Cheers,
Marc
When installing with 'pip install mynt', or even cloning this repo and 'python setup.py install', the default themes directory is not getting copied to the install path, which is preventing mynt from working at all (even 'mynt init --bare' fails without the themes directory)
Manually copying the themes dir from the git clone seems to fix the issue, so I assume it's a problem with setup.py.
edit: tested using python 2.7 under Windows 7 64 and Ubuntu 11.10
It's not obvious how to build index page.
I've discovered by myself that mynt
treats index.html
in project root as template for index page, it seems that is not mentioned in docs :)
It was confusing to run 'pip install mynt' and have it load 0.2.2 from https://pypi.python.org/pypi/mynt/
whereas the example in the docs show version 0.2.3-dev from that command.
http://mynt.mirroredwhite.com/docs/quickstart/
Perhaps the quick start docs can reflect the pypi wording for clarity:
From PyPI: $ pip install mynt
Latest trunk: $ pip install git+https://github.com/Anomareh/mynt.git
Hi
This is just a question out of curiosity that might be a desirable feature if the answer happens to be no.
Does mynt have an implementation of SASS or LESS?
I've seen the _sass-folder in the default _assets/css/_sass and I'll probably figure out how it is used as the evening progresses but for reference, this is probably interesting to more than me.
Is there an implementation in place and/or is it possible to easily hook something like LESS (my personal preference due to not having tried SASS yet) into the generation command?
I install mynt with pip (python3) and I get this error:
$ mynt --version
Traceback (most recent call last):
File "/home/xan//.local/bin/mynt", line 9, in
load_entry_point('mynt==0.2.2', 'console_scripts', 'mynt')()
File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 2326, in load_entry_point
return ep.load()
File "/usr/lib/python3.3/site-packages/pkg_resources.py", line 2032, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/home/xan/.local/lib/python3.3/site-packages/mynt/main.py", line 7, in
from mynt.core import Mynt
File "/home/xan/.local/lib/python3.3/site-packages/mynt/core.py", line 19, in
from watchdog.observers import Observer
File "/home/xan/.local/lib/python3.3/site-packages/watchdog/observers/init.py", line 34, in
from watchdog.observers.api import BaseObserver, DEFAULT_OBSERVER_TIMEOUT
File "/home/xan/.local/lib/python3.3/site-packages/watchdog/observers/api.py", line 62, in
from watchdog.utils.bricks import OrderedSetQueue as SetQueue
File "/home/xan/.local/lib/python3.3/site-packages/watchdog/utils/bricks.py", line 112, in
if not sys.version < (2, 6, 0):
TypeError: unorderable types: str() < tuple()
The mynt installed without any complaints on windows machine.
But as soon as i run mynt --version
, I'm greeted with the following error message:
Traceback (most recent call last): File "c:\python34\Lib\runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "c:\python34\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\username\Envs\myntenv\Scripts\mynt.exe\__main__.py", line 5, in <module> File "c:\users\username\envs\myntenv\lib\site-packages\mynt\main.py", line 7, in <module> from mynt.core import Mynt File "c:\users\username\envs\myntenv\lib\site-packages\mynt\core.py", line 22, in <module> from mynt.server import RequestHandler, Server File "c:\users\username\envs\myntenv\lib\site-packages\mynt\server.py", line 5, in <module> from SimpleHTTPServer import SimpleHTTPRequestHandler ImportError: No module named 'SimpleHTTPServer'
Again, running mynt init mysite
, I seem to get the same message:
Traceback (most recent call last): File "c:\python34\Lib\runpy.py", line 170, in _run_module_as_main "__main__", mod_spec) File "c:\python34\Lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\username\Envs\myntenv\Scripts\mynt.exe\__main__.py", line 5, in <module> File "c:\users\username\envs\myntenv\lib\site-packages\mynt\main.py", line 7, in <module> from mynt.core import Mynt File "c:\users\username\envs\myntenv\lib\site-packages\mynt\core.py", line 22, in <module> from mynt.server import RequestHandler, Server File "c:\users\username\envs\myntenv\lib\site-packages\mynt\server.py", line 5, in <module> from SimpleHTTPServer import SimpleHTTPRequestHandler ImportError: No module named 'SimpleHTTPServer'
In Python 2.7.2 calling mynt _site
causes AttributeError: 'module' object has no attribute 'HTML_GITHUB_BLOCKCODE'
trace:
Traceback (most recent call last):
File "/usr/bin/mynt", line 9, in <module>
load_entry_point('mynt==0.1.7', 'console_scripts', 'mynt')()
File "/usr/lib/python2.7/site-packages/mynt/main.py", line 13, in main
Mynt().generate()
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 338, in generate
self._render()
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 284, in _render
self._process()
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 235, in _process
self._parse()
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 211, in _parse
content = self.parser.parse(self.renderer.from_string(post.bodymatter, post.frontmatter))
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 366, in parser
self._parser = self._get_parser()(self.config.get(self.config['parser'], {}))
File "/usr/lib/python2.7/site-packages/mynt/core.py", line 132, in _get_parser
return load_entry_point('mynt', 'mynt.parsers.{0}'.format(self.config['markup']), self.config['parser'])
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1989, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/mynt/parsers/markdown/misaka.py", line 12, in <module>
class Parser(_Parser):
File "/usr/lib/python2.7/site-packages/mynt/parsers/markdown/misaka.py", line 26, in Parser
'github_blockcode': m.HTML_GITHUB_BLOCKCODE,
AttributeError: 'module' object has no attribute 'HTML_GITHUB_BLOCKCODE'
It would be awesome if it were not only possible to write blog posts using Markdown, but also pages. Any *.md
file in a directory could be processed via Markdown.
Rationale: I would prefer to concentrate on the contents itself, rather than crafting HTML (which I still could do if I wanted to).
For example, take the following structure:
mysite/
├── _assets/
│ ...
├── _posts/
│ ...
├── _templates/
│ ├── archive.html
│ ├── layout.html
│ ├── page.header.html
│ ├── page.html <-----
│ ├── post.html
│ └── tag.html
├── about/
│ └── index.md <-----
├── archives/
│ └── index.html
├── config.yml
├── feed.xml
└── index.html
When generating the site, index.md
in the about
directory would be processed like a blog post, and end up in about/index.html
. index.md
would look like this:
---
layout: page.html
---
## About me
Things you probably didn’t know about me.
_templates/page.html
, in its simplest form, might look like this:
{% extends 'layout.html' %}
{% block content %}
<article>
{{ page.content }}
</article>
{% endblock %}
It should be mentioned that this install script uses core libraries like 'argparse' which are only available in python 2.7. (easy enough to get around w/ virtualenv, but important). Pip also is not pulling in pygments or yaml during the install, and both seem to be required for the install process. I had to manually install both to get the pip install to work.
After that it worked smoothly, just thought you might like to know! Thanks!
Image tags written with both the markdown (![alt](img.jpg)
) and html (<img />
) formats are wrapped by paragraphs. Is there a way to disable this?
Thank you very much for open-sourcing such a nifty tool! While playing around with mynt, I wondered what is under the hood and I saw cool things ;-)
I encounterd strange markdown rendering with lists. Instead of showing the textual representation of the number on the same line as the actual number (like with github flavoured markdown and most other flavours), it's wrapped in a paragraph and showed on the next line. This really breaks the nice design:
One
mynt
Two
your
Three
site
is rendered like this
I am a novice user, but just for one night, I was able to make a site on twitter bootstrap.
But there is one point that I can't do. I have this code in my navbar:
<ul class="nav navbar-nav">
<li class="active"><a href="{{ get_url() }}">Home</a></li>
<li class=""><a href="{{ get_url('sale/') }}">Sale</a></li>
<li class=""><a href="{{ get_url('delap/') }}">Delap</a></li>
<li class=""><a href="{{ get_url('showcase/') }}">Showcase</a></li>
</ul>
How can I change class=active
depending on the current menu?
The documentation says tag has the 'posts' as one of it's members. http://mynt.uhnomoli.com/docs/templates/#data.locals.tag
But the latest version of mynt 0.3 has 'items' as the member instead of 'posts'. Moreover, this cannot be accessed as tag.items in the templates as this collides with the dict 'items()' function that tag has resulting in the following error.
Traceback (most recent call last):
File "/home/sharmi/installs/virtualenv/mynt/bin/mynt", line 9, in <module>
load_entry_point('mynt==0.3', 'console_scripts', 'mynt')()
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/main.py", line 13, in main
Mynt()
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/core.py", line 74, in __init__
self.opts['func']()
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/core.py", line 347, in generate
self._generate()
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/core.py", line 291, in _generate
self._render()
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/core.py", line 286, in _render
self.pages[i] = self.writer.render(*page)
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/processors.py", line 261, in render
content = self._renderer.render(template, data)
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/mynt/renderers/jinja.py", line 104, in render
return template.render(**data)
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/sharmi/myblogs/blog/tags/index.html", line 4, in top-level template code
{% set title = 'Tags' %}
File "/home/sharmi/myblogs/blog/_templates/layout.html", line 44, in top-level template code
{% block content %}{% endblock %}
File "/home/sharmi/myblogs/blog/tags/index.html", line 14, in block "content"
{% for post in tag.items %}
File "/home/sharmi/installs/virtualenv/mynt/local/lib/python2.7/site-packages/jinja2/runtime.py", line 284, in __init__
self._iterator = iter(iterable)
TypeError: 'builtin_function_or_method' object is not iterable
Changing the reference to tag['items'] in the template works. Maybe this should be documented so that it helps others avoid these issues.
I tried to limit the amount of posts on the front page inside the for loop with "for post in posts[0:10]". This doesn't work anymore.
The error displays something with "no data in getitem"
Hey,
When rendering pages, mynt breaks with a "Template not found" error. The problem seems to be that the Jinja2 search path isn't picking up the template, as the search path is always the "_templates" directory.
It can be seen by installing mynt on a Windows machine, and then cloning your blog (https://github.com/Anomareh/MirroredWhite) and running mynt -v _deploy. The error is, exactly:
$ mynt -v _dest
>> Initializing
.. src: c:\Temp\tmp\MirroredWhite
.. dest: c:\Temp\tmp\MirroredWhite\_dest
>> Searching for config
.. found: c:\Temp\tmp\MirroredWhite\config.yml
>> Parsing
.. src: c:\Temp\tmp\MirroredWhite\_posts
.. 2010-08-16-Messing-around-with-Irssi-and-LiteStep..md
.. 2011-04-06-So-this-blogging-thing..md
.. 2011-11-18-I-spend-too-much-time-thinking-about-post-titles..md
.. 2012-01-02-I-almost-upped-my-posts-per-year-to-3-and-a-mynty-fresh-start-to-2012..md
.. 2012-01-25-From-1-project-comes-2-more..md
>> Processing
.. ordering posts
.. generating archives
.. sorting tags
>> Rendering
.. posts
.. pages
!! Template not found.
I've monkey-patched mynt to print the search path, and it gives this:
getting loader: post.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: layout.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: page.header.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: modules/what.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: module.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: modules/where.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
getting loader: modules/who.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
.. pages
-> 404.html
getting loader: 404.html [u'c:\\Temp\\tmp\\MirroredWhite\\_templates']
!! Template not found.
As can be seen, the search path for pages in the root directory is invalid.
Best Regards.
(envmynt) C:\Users\user\workspace>mynt -v gen -f source_dir destination_dir
>> Initializing
.. src: C:\Users\user\workspace\source_dir
.. dest: C:\Users\user\workspace\destination_dir
>> Searching for config
.. found: C:\Users\user\workspace\source_dir\config.yml
>> Parsing
.. src: C:\Users\user\workspace\source_dir\_posts
.. 2013-06-09-test..md
>> Processing
.. ordering posts
.. generating archives
.. sorting tags
>> Rendering
.. posts
!! Template not found.
.. post.html in post 'test'
with jinja2==2.6 everything works fine
When I try to generate my site I get (with verbose logging):
mynt -v gen _generated
>> Initializing
.. src: /Users/saul/Documents/Coding/site
.. dest: /Users/saul/Documents/Coding/site/_generated
>> Searching for config
.. found: /Users/saul/Documents/Coding/site/config.yml
>> Parsing
.. src: /Users/saul/Documents/Coding/site/_posts
.. 2012-04-12-Welcome-to-mynt..md
>> Processing
.. ordering posts
.. generating archives
.. sorting tags
>> Rendering
.. posts
.. pages
.. tags
.. archives
!! Template not found.
This might be because I deleted the archive template file, because I didn't want archives to be linked by year. I just wanted an archive page. I removed all references to specific archive-year urls, but still I get a template not found. If the archive template is a must, I can leave it and just not link to any archives, but it would be helpful to log where the error is.
hi.
i use "pip install mynt" to install mynt,but when i run "mynt -v",it shows errors.
how to fix the issue?
pls see below:
as3:# pip install mynt# mynt -v
Downloading/unpacking mynt
Downloading mynt-0.2.3.tar.gz (128Kb): 128Kb downloaded
Running setup.py egg_info for package mynt
Requirement already satisfied (use --upgrade to upgrade): houdini.py in /usr/local/lib/python2.6/dist-packages (from mynt)
Downloading/unpacking Jinja2==2.7 (from mynt)
Downloading Jinja2-2.7.tar.gz (377Kb): 377Kb downloaded
Running setup.py egg_info for package Jinja2
warning: no files found matching '' under directory 'custom_fixers'
warning: no previously-included files matching '' found under directory 'docs/build'
warning: no previously-included files matching '.pyc' found under directory 'jinja2'
warning: no previously-included files matching '.pyc' found under directory 'docs'
warning: no previously-included files matching '.pyo' found under directory 'jinja2'
warning: no previously-included files matching '.pyo' found under directory 'docs'
Requirement already satisfied (use --upgrade to upgrade): misaka>=1.0.2 in /usr/local/lib/python2.6/dist-packages (from mynt)
Requirement already satisfied (use --upgrade to upgrade): Pygments in /usr/local/lib/python2.6/dist-packages (from mynt)
Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/local/lib/python2.6/dist-packages/PyYAML-3.10-py2.6-linux-i686.egg (from mynt)
Requirement already satisfied (use --upgrade to upgrade): watchdog in /usr/local/lib/python2.6/dist-packages/watchdog-0.6.0-py2.6.egg (from mynt)
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/local/lib/python2.6/dist-packages (from Jinja2==2.7->mynt)
Requirement already satisfied (use --upgrade to upgrade): argh>=0.8.1 in /usr/local/lib/python2.6/dist-packages/argh-0.23.3-py2.6.egg (from watchdog->mynt)
Requirement already satisfied (use --upgrade to upgrade): pathtools in /usr/local/lib/python2.6/dist-packages/pathtools-0.1.2-py2.6.egg (from watchdog->mynt)
Requirement already satisfied (use --upgrade to upgrade): argparse>=1.1 in /usr/local/lib/python2.6/dist-packages (from watchdog->mynt)
Installing collected packages: mynt, Jinja2
Running setup.py install for mynt
Installing mynt script to /usr/local/bin
Found existing installation: Jinja2 2.7.1
Uninstalling Jinja2:
Successfully uninstalled Jinja2
Running setup.py install for Jinja2
warning: no files found matching '' under directory 'custom_fixers'
warning: no previously-included files matching '' found under directory 'docs/build'
warning: no previously-included files matching '.pyc' found under directory 'jinja2'
warning: no previously-included files matching '.pyc' found under directory 'docs'
warning: no previously-included files matching '.pyo' found under directory 'jinja2'
warning: no previously-included files matching '.pyo' found under directory 'docs'
Successfully installed mynt Jinja2
Cleaning up...
as3:
Traceback (most recent call last):
File "/usr/local/bin/mynt", line 9, in
load_entry_point('mynt==0.2.3', 'console_scripts', 'mynt')()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 305, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2244, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1954, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.6/dist-packages/mynt/main.py", line 7, in
from mynt.core import Mynt
File "/usr/local/lib/python2.6/dist-packages/mynt/core.py", line 25, in
from mynt.containers import Config, Page, Post
File "/usr/local/lib/python2.6/dist-packages/mynt/containers.py", line 11, in
from mynt.fs import File
File "/usr/local/lib/python2.6/dist-packages/mynt/fs.py", line 16, in
from mynt.utils import abspath, get_logger, normpath
File "/usr/local/lib/python2.6/dist-packages/mynt/utils.py", line 5, in
from collections import OrderedDict as _OrderedDict
ImportError: cannot import name OrderedDict
as3:# mynt --version#
Traceback (most recent call last):
File "/usr/local/bin/mynt", line 9, in
load_entry_point('mynt==0.2.3', 'console_scripts', 'mynt')()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 305, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2244, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1954, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.6/dist-packages/mynt/main.py", line 7, in
from mynt.core import Mynt
File "/usr/local/lib/python2.6/dist-packages/mynt/core.py", line 25, in
from mynt.containers import Config, Page, Post
File "/usr/local/lib/python2.6/dist-packages/mynt/containers.py", line 11, in
from mynt.fs import File
File "/usr/local/lib/python2.6/dist-packages/mynt/fs.py", line 16, in
from mynt.utils import abspath, get_logger, normpath
File "/usr/local/lib/python2.6/dist-packages/mynt/utils.py", line 5, in
from collections import OrderedDict as _OrderedDict
ImportError: cannot import name OrderedDict
as3:
Thanks for great project! Refreshingly simple, fast and easy to use.
It would be awesome if extra parameters in the mynt.yml would allow extra customisation for allowing mynt to always copy files/folders to target (the same way "_assets" are copied). (for example robots.txt file, folder contents of static files that should be in the specific location due to compatibility etc.).
Perhaps something like this:
always_include: robots.txt
always_include: archive/*.csv
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.