Navigation Menu

Skip to content

Commit

Permalink
Minor README fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Dec 5, 2017
1 parent 168a5d1 commit 4abe7e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion v8/datocms/README.md
Expand Up @@ -20,4 +20,6 @@ How to Use it

5. Run ``nikola datocms``

At that point your pages and posts created in Dato should be ready for you to use. Have fun!
At that point your pages and posts created in Dato should be ready for you to use. Have fun!

Automation is possible with [Travis CI](https://getnikola.com/blog/automating-nikola-rebuilds-with-travis-ci.html) (general guide, but you can make it work with Dato with some work as well)
5 changes: 3 additions & 2 deletions v8/datocms/datocms.py
Expand Up @@ -27,6 +27,7 @@
from __future__ import print_function, unicode_literals

import os
import subprocess
from nikola.plugin_categories import Command
from nikola import utils

Expand Down Expand Up @@ -76,7 +77,7 @@
};
'''

LOGGER = utils.get_logger('import_blogger', utils.STDERR_HANDLER)
LOGGER = utils.get_logger('datocms', utils.STDERR_HANDLER)


class CommandDatoCMS(Command):
Expand All @@ -92,4 +93,4 @@ def _execute(self, options, args):
if not os.path.exists('dato.config.js'):
with open('dato.config.js') as outf:
outf.write(DATO_CONFIG)
os.system('./node_modules/.bin/dato dump')
subprocess.call(['./node_modules/.bin/dato', 'dump'])

0 comments on commit 4abe7e3

Please sign in to comment.