Skip to content

Commit 5ffb64f

Browse files
moved html_render and accompanying files to its own dir.
1 parent bfa8e58 commit 5ffb64f

17 files changed

+15
-15
lines changed

build_gh_pages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ git push
4545
popd
4646

4747
echo "Now verify the render on github.io at the following link:"
48-
echo "https://uwpce-pythoncert.github.io/Python210CourseMaterials/"
48+
echo "https://uwpce-pythoncert.github.io/ProgrammingInPython/"
4949

source/exercises/html_renderer.rst renamed to source/exercises/html_renderer/html_renderer.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ i.e. nicely indented and human readable.
2222

2323
We'll try to get to all the features required to render this file:
2424

25-
:download:`sample_html.html <../examples/html_render/sample_html.html>`
25+
:download:`sample_html.html <./sample_html.html>`
2626

2727
Take a look at it by opening it in your text editor. And also in a browser to see how it's rendered.
2828

@@ -45,11 +45,11 @@ General Instructions:
4545

4646
You can start with the framework in:
4747

48-
:download:`html_render.py <../examples/html_render/html_render.py>`
48+
:download:`html_render.py <./html_render.py>`
4949

5050
For each step, add the required functionality. There is example code to run your code for each step in:
5151

52-
:download:`run_html_render.py <../examples/html_render/run_html_render.py>`
52+
:download:`run_html_render.py <./run_html_render.py>`
5353

5454
You should be able to run that code at each step, uncommenting each new step in ``run_html_render.py`` as you go.
5555

@@ -80,7 +80,7 @@ That is:
8080

8181
A start of a test file is provided here:
8282

83-
:download:`test_html_render.py <../examples/html_render/test_html_render.py>`
83+
:download:`test_html_render.py <./test_html_render.py>`
8484

8585
It has a few tests for the first few steps -- uncomment them as you go along.
8686

@@ -260,7 +260,7 @@ Should result in something like:
260260
</body>
261261
</html>
262262

263-
See: :download:`test_html_output2.html <../examples/html_render/test_html_output2.html>`
263+
See: :download:`test_html_output2.html <./test_html_output2.html>`
264264

265265
NOTE: when you run step 2 in ``run_html_render.py``, you will want to comment out step 1 -- that way you'll only get one set of output.
266266

@@ -282,7 +282,7 @@ Create a ``Title`` subclass of ``OneLineTag`` class for the title.
282282
You should now be able to render an html doc with a head element, with a
283283
title element in that, and a body element with some ``<P>`` elements and some text.
284284

285-
See :download:`test_html_output3.html <../examples/html_render/test_html_output3.html>`
285+
See :download:`test_html_output3.html <./test_html_output3.html>`
286286

287287
Step 4:
288288
-------
@@ -301,7 +301,7 @@ Note that you may now have *two* render methods -- the one in the ``Element`` ba
301301

302302
You can now render some ``<p>`` tags (and others) with attributes.
303303

304-
See: :download:`test_html_output4.html <../examples/html_render/test_html_output4.html>`
304+
See: :download:`test_html_output4.html <./test_html_output4.html>`
305305

306306
NOTE: if you do "proper" CSS+html, then you wouldn't specify style directly in element attributes.
307307

@@ -363,7 +363,7 @@ Note that you now have maybe three render methods -- is there repeated code in t
363363

364364
Can you refactor the common parts into a separate method that all the render methods can call? And do all your tests still pass (you do have tests for everything, don't you?) after refactoring?
365365

366-
See: :download:`test_html_output5.html <../examples/html_render/test_html_output5.html>`
366+
See: :download:`test_html_output5.html <./test_html_output5.html>`
367367

368368

369369
Step 6:
@@ -386,7 +386,7 @@ You should be able to subclass from ``Element``, and only override the ``__init_
386386

387387
You can now add a link to your web page.
388388

389-
See: :download:`test_html_output6.html <../examples/html_render/test_html_output6.html>`
389+
See: :download:`test_html_output6.html <./test_html_output6.html>`
390390

391391
Step 7:
392392
--------
@@ -407,7 +407,7 @@ for an <h2> header.
407407

408408
It can subclass from ``OneLineTag`` -- overriding the ``__init__``, then calling the superclass ``__init__``
409409

410-
See: :download:`test_html_output7.html <../examples/html_render/test_html_output7.html>`
410+
See: :download:`test_html_output7.html <./test_html_output7.html>`
411411

412412
Step 8:
413413
-------
@@ -424,7 +424,7 @@ http://validator.w3.org/#validate_by_input
424424

425425
You now have a pretty full-featured html renderer -- play with it, add some new tags, etc....
426426

427-
See :download:`test_html_output8.html <../examples/html_render/test_html_output8.html>`
427+
See :download:`test_html_output8.html <./test_html_output8.html>`
428428

429429

430430
Step 9: Adding Indentation
@@ -522,7 +522,7 @@ So:
522522

523523
You should have nice pretty indented html now!
524524

525-
See :download:`test_html_output9.html <../examples/html_render/test_html_output9.html>`
525+
See :download:`test_html_output9.html <./test_html_output9.html>`
526526

527527

528528
.. _notes_on_handling_duck_typing:
File renamed without changes.

0 commit comments

Comments
 (0)