File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11# flake8: noqa
2- from pathlib import Path
32from invoke import task
43from pathlib import Path
54import os
@@ -26,14 +25,6 @@ def filter_entries(filename):
2625assert 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
3829def webdrivers (ctx , geckodriver = None , chromedriver = None ):
3930 """Downloads required webdrivers"""
@@ -70,7 +61,6 @@ def rflint(ctx):
7061@task
7162def 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 )
You can’t perform that action at this time.
0 commit comments