Skip to content
Permalink
Browse files
Trying to fix doc tests.
  • Loading branch information
felixfontein committed Aug 7, 2016
1 parent 5f61a63 commit c1aa57955a87cb03d30bf35aef5095c25397d00a
Showing with 5 additions and 5 deletions.
  1. +5 −5 nikola/utils.py
@@ -996,19 +996,19 @@ def get_asset_path(path, themes, files_folders={'files': ''}, output_dir='output
If it's not provided by either, it will be chacked in output, where
it may have been created by another plugin.
>>> print(get_asset_path('assets/css/rst.css', ['bootstrap3', 'base']))
>>> print(get_asset_path('assets/css/rst.css', get_theme_chain('bootstrap3', ['themes']))
/.../nikola/data/themes/base/assets/css/rst.css
>>> print(get_asset_path('assets/css/theme.css', ['bootstrap3', 'base']))
>>> print(get_asset_path('assets/css/theme.css', get_theme_chain('bootstrap3', ['themes'])))
/.../nikola/data/themes/bootstrap3/assets/css/theme.css
>>> print(get_asset_path('nikola.py', ['bootstrap3', 'base'], {'nikola': ''}))
>>> print(get_asset_path('nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': ''}))
/.../nikola/nikola.py
>>> print(get_asset_path('nikola.py', ['bootstrap3', 'base'], {'nikola': 'nikola'}))
>>> print(get_asset_path('nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': 'nikola'}))
None
>>> print(get_asset_path('nikola/nikola.py', ['bootstrap3', 'base'], {'nikola': 'nikola'}))
>>> print(get_asset_path('nikola/nikola.py', get_theme_chain('bootstrap3', ['themes']), {'nikola': 'nikola'}))
/.../nikola/nikola.py
"""

0 comments on commit c1aa579

Please sign in to comment.