Skip to content

Instantly share code, notes, and snippets.

@philipn
Last active December 15, 2015 09:49

Revisions

  1. philipn revised this gist Apr 7, 2013. 1 changed file with 5 additions and 9 deletions.
    14 changes: 5 additions & 9 deletions gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,15 @@
    If you've customized your CSS or otherwise altered your ``site/base.html`` template you'll want to do the following:

    First, figure out where the localwiki code directory lives::
    Back up your old base.html template::

    localwiki-manage shell
    sudo cp /usr/share/localwiki/templates/site/base.html ~/base.html.bak

    Then type::
    Now just remove the base.html template::

    import sapling; print sapling.__path__[0]; exit()

    that will print out where the code directory lives.

    Then enter that directory and copy ``themes/sapling/templates/site/base.html`` to your ``/usr/share/localwiki/templates/site/base.html``
    sudo rm /usr/share/localwiki/templates/site/base.html

    You'll then want to follow the instructions for customizing the CSS:

    https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page

    The only difference now is that we make the CSS-specific changes in a new ``site/extra_media.html`` template.
    The only difference now is that we make the CSS-specific changes in a new ``site/extra_media.html`` template rather than adding them directly into ``base.html``.
  2. philipn revised this gist Mar 26, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    If you've customized your CSS or otherwise altered your site/base.html template you'll want to do the following:
    If you've customized your CSS or otherwise altered your ``site/base.html`` template you'll want to do the following:

    First, figure out where the localwiki code directory lives::

  3. philipn revised this gist Mar 26, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ You'll then want to follow the instructions for customizing the CSS:

    https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page

    The only difference now is that we make the CSS-specific changes in a new site/extra_media.html template.
    The only difference now is that we make the CSS-specific changes in a new ``site/extra_media.html`` template.
  4. philipn revised this gist Mar 26, 2013. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,10 @@ Then type::

    that will print out where the code directory lives.

    Then enter that directory and copy themes/sapling/templates/site/base.html to your /usr/share/localwiki/templates/site/base.html
    Then enter that directory and copy ``themes/sapling/templates/site/base.html`` to your ``/usr/share/localwiki/templates/site/base.html``

    You'll then want to follow the instructions for customizing the CSS: https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page The only difference now is that we make the CSS-specific changes in a new site/extra_media.html template.
    You'll then want to follow the instructions for customizing the CSS:

    https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page

    The only difference now is that we make the CSS-specific changes in a new site/extra_media.html template.
  5. philipn revised this gist Mar 26, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    If you've customized your CSS or otherwise altered your site/base.html template you'll want to do the following:

    1. Figure out where the localwiki code directory lives::
    First, figure out where the localwiki code directory lives::

    localwiki-manage shell

  6. philipn revised this gist Mar 26, 2013. No changes.
  7. philipn renamed this gist Mar 26, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.txt → gistfile1.rst
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    If you've customized your CSS or otherwise altered your site/base.html template you'll want to do the following:

    1. Figure out where the localwiki code directory lives:
    1. Figure out where the localwiki code directory lives::

    localwiki-manage shell

    Then type:
    Then type::

    import sapling; print sapling.__path__[0]; exit()
    import sapling; print sapling.__path__[0]; exit()

    that will print out where the code directory lives.

  8. philipn created this gist Mar 25, 2013.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    If you've customized your CSS or otherwise altered your site/base.html template you'll want to do the following:

    1. Figure out where the localwiki code directory lives:

    localwiki-manage shell

    Then type:

    import sapling; print sapling.__path__[0]; exit()

    that will print out where the code directory lives.

    Then enter that directory and copy themes/sapling/templates/site/base.html to your /usr/share/localwiki/templates/site/base.html

    You'll then want to follow the instructions for customizing the CSS: https://localwiki.readthedocs.org/en/latest/customizing.html#example-2-adding-a-custom-css-file-on-every-page The only difference now is that we make the CSS-specific changes in a new site/extra_media.html template.