Skip to content

Commit b6eea4d

Browse files
authored
Merge pull request #63 from emanlove/master
Resolved libdoc issue
2 parents 6f43e0d + 46fe0a0 commit b6eea4d

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

assets/libdoc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" type="text/css" href="pygments.css" media="all">
1212
<link rel="stylesheet" type="text/css" href="print.css" media="print">
1313
<link rel="stylesheet" type="text/css" href="../common/js_disabled.css" media="all">
14-
<link rel="stylesheet" type="text/css" href="../common/doc_formatting.css" media="all">
14+
<link rel="stylesheet" type="text/css" href="../libdoc/doc_formatting.css" media="all">
1515
<script type="text/javascript" src="../rebot/util.js"></script> <!-- TODO: Should util.js be moved under common? -->
1616
<script type="text/javascript" src="../lib/jquery.min.js"></script>
1717
<script type="text/javascript" src="../lib/jquery.tmpl.min.js"></script>

tasks.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# flake8: noqa
2-
from pathlib import Path
32
from invoke import task
43
from pathlib import Path
54
import os
@@ -26,14 +25,6 @@ def filter_entries(filename):
2625
assert Path.cwd() == Path(__file__).parent
2726

2827

29-
def patch_libdoc():
30-
import robot.htmldata
31-
32-
old_template = Path(robot.htmldata.__file__).parent / robot.htmldata.LIBDOC
33-
new_template = Path(__file__).parent / "assets" / "libdoc.html"
34-
shutil.copy(str(new_template), str(old_template))
35-
36-
3728
@task
3829
def webdrivers(ctx, geckodriver=None, chromedriver=None):
3930
"""Downloads required webdrivers"""
@@ -70,7 +61,6 @@ def rflint(ctx):
7061
@task
7162
def docs(ctx):
7263
"""Generates keyword docs"""
73-
patch_libdoc()
7464
ctx.run(
7565
f"python -m robot.libdoc --name {QUOTE}SeleniumLibrary with SeleniumTestability Plugin{QUOTE} --pythonpath src SeleniumLibrary::plugins=SeleniumTestability docs{os.path.sep}keywords.html"
7666
)

0 commit comments

Comments
 (0)