From 731ff9482ecae7b5293bcfe1512389efd7f17571 Mon Sep 17 00:00:00 2001 From: kosayoda Date: Wed, 24 Mar 2021 13:22:57 +0800 Subject: Improve phrasing and wording of documentation. --- pydis_site/apps/content/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pydis_site/apps/content/utils.py') diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py index 17d7db81..6cb15581 100644 --- a/pydis_site/apps/content/utils.py +++ b/pydis_site/apps/content/utils.py @@ -15,7 +15,7 @@ def get_category(path: Path) -> Dict[str, str]: def get_categories(path: Path) -> Dict[str, Dict]: - """Get all categories information.""" + """Get information for all categories.""" categories = {} for name in path.iterdir(): @@ -38,7 +38,7 @@ def get_pages(path: Path) -> Dict[str, Dict]: def get_page(path: Path) -> Dict[str, Union[str, Dict]]: - """Get one specific page. When category is specified, get it from there.""" + """Get one specific page.""" if not path.exists() or not path.is_file(): raise Http404("Page not found.") -- cgit v1.2.3