Skip to content

Commit 5f5793e

Browse files
committed
Updates from review
1 parent 9fd28a1 commit 5f5793e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

readthedocs/projects/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,8 @@ def get_processed_json(self):
14431443
log.warning(
14441444
"Invalid documentation type",
14451445
documentation_type=self.version.documentation_type,
1446+
version_slug=self.version.slug,
1447+
project_slug=self.project.slug,
14461448
)
14471449
return {}
14481450
parser = parser_class(self.version)

readthedocs/search/parsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def parse(self, page):
312312
content = self._get_page_content(page)
313313
if content:
314314
return self._process_content(page, content)
315-
except Exception as e:
315+
except Exception:
316316
log.info("Failed to index page.", path=page, exc_info=True)
317317
return {
318318
"path": page,

readthedocs/search/tests/data/generic/in/basic.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<title>My first web page</title>
5+
<title>Title of the page</title>
66
</head>
77
<body>
8-
My first web page!
8+
Content of the body.
99
</body>
1010
</html>

readthedocs/search/tests/data/generic/out/basic.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
22
{
3-
"title": "My first web page",
3+
"title": "Title of the page",
44
"path": "basic.html",
55
"sections": [
66
{
77
"id": "",
8-
"title": "My first web page",
9-
"content": "My first web page!"
8+
"title": "Title of the page",
9+
"content": "Content of the body."
1010
}
1111
],
1212
"domain_data": {}

0 commit comments

Comments
 (0)