Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dce0ebc

Browse files
committedDec 17, 2016
Improving docstrings.
1 parent 1b5baa8 commit dce0ebc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎nikola/plugins/task/taxonomies.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class RenderTaxonomies(Task):
7272
name = "render_taxonomies"
7373

7474
def _generate_classification_data(self, taxonomy, lang):
75-
"""Create context and kw for a classification overview page."""
75+
"""Prepare lookup tables for cross-classification navigation links."""
7676
# Collect all relevant classifications
7777
if taxonomy.has_hierarchy:
7878
# Create clipped tree
@@ -354,6 +354,7 @@ def get_subnode_data(subnode):
354354
return task
355355

356356
def _add_cross_classification_navigation_links(self, taxonomy, classification, context, kw, lang, generate_list, generate_rss):
357+
"""Add various cross-classification navigation links to kw and context."""
357358
classifications, classifications_lookup, clipped_root_list, clipped_flat_hierarchy, clipped_flat_lookup, clipped_node_lookup = self.classification_data[taxonomy.classification_name][lang]
358359
# Get previous and next in (flattened) list of all classifications
359360
i = classifications_lookup.get(classification)
@@ -414,6 +415,7 @@ def _add_cross_classification_navigation_links(self, taxonomy, classification, c
414415
result = {}
415416

416417
def add(name, classification):
418+
"""Helper for adding variables."""
417419
result[name] = classification
418420
if classification is not None:
419421
result['{0}_name'.format(name)] = taxonomy.get_classification_friendly_name(classification, lang, only_last_component=False)

0 commit comments

Comments
 (0)
Please sign in to comment.