Skip to content

Commit e051a1d

Browse files
committedSep 21, 2015
Merge pull request #2108 from getnikola/fix-2106
Fix 2106
2 parents 5ef0dba + 997b82b commit e051a1d

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed
 

Diff for: ‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Features
1111
Bugfixes
1212
--------
1313

14+
* Fix false orphan report for code.css and robots.txt (Issue #2106)
1415
* Fix reST post list date formatting error (Issue #2104)
1516
* Deprecated ``RSS_TEASERS``, ``RSS_PLAIN``, ``RSS_READ_MORE_LINK``, and
1617
``RSS_LINKS_APPEND_QUERY`` in favor of ``FEED_TEASERS``, ``FEED_PLAIN``,

Diff for: ‎nikola/plugins/task/copy_assets.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ def gen_tasks(self):
6161
code_css_path = os.path.join(kw['output_folder'], 'assets', 'css', 'code.css')
6262
code_css_input = utils.get_asset_path('assets/css/code.css',
6363
themes=kw['themes'],
64-
files_folders=kw['files_folders'])
65-
66-
kw["code.css_input"] = code_css_input
67-
64+
files_folders=kw['files_folders'], output_dir=None)
6865
yield self.group_task()
6966

7067
for theme_name in kw['themes']:

Diff for: ‎tests/test_integration.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,11 @@ class TestCheck(DemoBuildTest):
307307

308308
def test_check_links(self):
309309
with cd(self.target_dir):
310-
try:
311-
__main__.main(['check', '-l'])
312-
except SystemExit as e:
313-
self.assertEqual(e.code, 0)
310+
self.assertIsNone(__main__.main(['check', '-l']))
314311

315312
def test_check_files(self):
316313
with cd(self.target_dir):
317-
try:
318-
__main__.main(['check', '-f'])
319-
except SystemExit as e:
320-
self.assertEqual(e.code, 0)
321-
314+
self.assertIsNone(__main__.main(['check', '-f']))
322315

323316
class TestCheckAbsoluteSubFolder(TestCheck):
324317
"""Validate links in a site which is:

0 commit comments

Comments
 (0)
Please sign in to comment.