Skip to content

Commit c8febb2

Browse files
authored
fix: automatically generate report.html (#178)
1 parent 550b67d commit c8febb2

File tree

7 files changed

+6
-201
lines changed

7 files changed

+6
-201
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install:
1212
- yarn
1313
script:
1414
- tox
15+
- cp testfiles-*/bonds.reaxc.html docs/.vuepress/public/report.html
1516
- yarn docs:build
1617
deploy:
1718
provider: pages

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ReacNetGenerator can process any kind of trajectory files containing atomic coor
4646
```bash
4747
reacnetgenerator --dump -i dump.reaxc -a C H O
4848
```
49-
where C, H, and O are atomic names in the input file. [Analysis report](/r.html) will be generated automatically.
49+
where C, H, and O are atomic names in the input file. [Analysis report](https://njzjz.github.io/reacnetgenerator/report.html) will be generated automatically.
5050

5151
Also, ReacNetGenerator can process files containing bond information, e.g. LAMMPS bond file:
5252

docs/.vuepress/public/report.html

Lines changed: 0 additions & 195 deletions
This file was deleted.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ReacNetGenerator can process any kind of trajectory files containing atomic coor
5555
```bash
5656
reacnetgenerator --dump -i dump.reaxc -a C H O
5757
```
58-
where C, H, and O are atomic names in the input file. [Analysis report](/r.html) will be generated automatically.
58+
where C, H, and O are atomic names in the input file. [Analysis report](https://njzjz.github.io/reacnetgenerator/report.html) will be generated automatically.
5959

6060
Also, ReacNetGenerator can process files containing bond information, e.g. LAMMPS bond file:
6161

docs/r.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/zh/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ReacNetGenerator可以处理任意类型含有原子坐标的轨迹文件,例
5656
reacnetgenerator --dump -i dump.reaxc -a C H O
5757
```
5858

59-
其中,C、H、O 是轨迹中的原子种类。软件将自动生成[分析结果](/r.html)
59+
其中,C、H、O 是轨迹中的原子种类。软件将自动生成[分析结果](https://njzjz.github.io/reacnetgenerator/report.html)
6060

6161
软件也可以处理含有键级信息的文件,例如LAMMPS键级文件:
6262

reacnetgenerator/test/test_reacnetgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
import requests
1717
from tqdm import tqdm
1818

19-
19+
this_directory = os.getcwd()
2020
class TestReacNetGen:
2121
"""Test ReacNetGenerator."""
2222

2323
@pytest.fixture(params=json.load(
2424
pkg_resources.resource_stream(
2525
__name__, 'test.json')))
2626
def reacnetgen(self, request):
27-
folder = tempfile.mkdtemp(prefix='testfiles-', dir='.')
27+
folder = tempfile.mkdtemp(prefix='testfiles-', dir=this_directory)
2828
logging.info(f'Folder: {folder}:')
2929
os.chdir(folder)
3030

0 commit comments

Comments
 (0)