Closed Ceasar closed 10 years ago
@LewisJEllis, could you try this out your machine and let me know if it works for you as well? If it does, it should be trivial to add #6.
I don't fully understand the difference in methodology between this and how it was done before, and don't have time right now to poke through the code to figure it out, but I just did the following and it seemed to work:
$ git pull origin docutils
$ git checkout docutils
$ subl src/Lua.rst
$ make server
bundle install
Using sass 3.2.19
Using bootstrap-sass 3.2.0.2
Using chunky_png 1.3.1
Using fssm 0.2.10
Using compass 0.12.7
Using bundler 1.7.2
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
foreman start
23:21:31 web.1 | started with pid 18350
23:21:31 stylesheets.1 | started with pid 18351
23:21:31 web.1 | . env/bin/activate; python wsgi.py
23:21:31 stylesheets.1 | compass watch --css-dir=app/static/stylesheets/ --sass-dir=app/assets/sass/
23:21:31 web.1 | * Running on http://127.0.0.1:5001/
23:21:31 web.1 | * Restarting with reloader
23:21:32 stylesheets.1 | >>> Compass is polling for changes. Press Ctrl-C to Stop.
23:22:23 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:23] "GET / HTTP/1.1" 200 -
23:22:23 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:23] "GET /static/stylesheets/screen.css HTTP/1.1" 200 -
23:22:23 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:23] "GET /static/js/jquery-1.10.2.min.js HTTP/1.1" 200 -
23:22:23 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:23] "GET /static/js/typeahead.js HTTP/1.1" 200 -
23:22:23 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:23] "GET /favicon.ico HTTP/1.1" 404 -
23:22:27 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:27] "GET /search?q=Lua HTTP/1.1" 200 -
23:22:31 web.1 | 127.0.0.1 - - [15/Sep/2014 23:22:31] "GET /Lua HTTP/1.1" 200 -
And functionally there is no difference? You can still view articles, right?
Yep - as shown in the request history, I loaded the Lua page and it displayed as expected.
Great! Thank you for checking that so quickly. This will make a bunch of other improvements possible now.
Merged manually here: https://github.com/Ceasar/Encyclopedia/commit/406dbdb1192b20a0f79106f870567738003e3b99
This patch makes it possible to generate HTML from rST programmatically (i.e. in Python), which eliminates the need to compile templates from the command line.
Closes #6 .