Skip to content

Commit 8e2875b

Browse files
committed
FAB-385 fix search issue in readthedocs
created custom search.html file and update in mkdocs.yml file also updated yaml file with strict set to true. This fails the documentation build if it detemines a broken link. https://jira.hyperledger.org/browse/FAB-385 Change-Id: I6f7a60d980af07e14c8b2940d1aa224108c6416a Signed-off-by: rameshthoomu <[email protected]>
1 parent 02a123c commit 8e2875b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/custom_theme/searchbox.html

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div role="search">
2+
<form id ="rtd-search-form-alt" class="wy-form" action="{{ base_url }}/search.html" method="get">
3+
<input type="text" name="q" placeholder="Search docs" />
4+
</form>
5+
</div>

mkdocs.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ site_url: http://hyperledger-fabric.readthedocs.io
33
theme: readthedocs
44
repo_url: http://gerrit.hyperledger.org/r/fabric
55
site_description: 'Welcome to the Hyperledger fabric documentation'
6+
strict: true
7+
theme_dir: 'docs/custom_theme'
68

79
pages:
810
- Home: index.md

0 commit comments

Comments
 (0)