Skip to content

Commit a50a2a2

Browse files
committed
Try fixing filepath issue
1 parent ec4c681 commit a50a2a2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/src/docgen/guide.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,62 +20,62 @@ pub fn get_guide_list() -> Vec<Guide> {
2020
Guide {
2121
title: "Installation".to_string(),
2222
file_name: "Installation".to_string(),
23-
content: include_str!("../../guide/00 Installation.md").to_string(),
23+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/00 Installation.md")).to_string(),
2424
},
2525
Guide {
2626
title: "Getting Started".to_string(),
2727
file_name: "GettingStarted".to_string(),
28-
content: include_str!("../../guide/01 Getting Started.md").to_string(),
28+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/01 Getting Started.md")).to_string(),
2929
},
3030
Guide {
3131
title: "Application Architecture".to_string(),
3232
file_name: "ApplicationArchitecture".to_string(),
33-
content: include_str!("../../guide/02 Application Architecture.md").to_string(),
33+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/02 Application Architecture.md")).to_string(),
3434
},
3535
Guide {
3636
title: "CSS Styling".to_string(),
3737
file_name: "CssStyling".to_string(),
38-
content: include_str!("../../guide/03 CSS Styling.md").to_string(),
38+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/03 CSS Styling.md")).to_string(),
3939
},
4040
Guide {
4141
title: "Images, SVG and Charts".to_string(),
4242
file_name: "ImagesSvgAndCharts".to_string(),
43-
content: include_str!("../../guide/04 Images, SVG and charts.md").to_string(),
43+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/04 Images, SVG and charts.md")).to_string(),
4444
},
4545
Guide {
4646
title: "Timers, Threads and Animations".to_string(),
4747
file_name: "TimersThreadsAndAnimations".to_string(),
48-
content: include_str!("../../guide/05 Timers, Threads and Animations.md").to_string(),
48+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/05 Timers, Threads and Animations.md")).to_string(),
4949
},
5050
Guide {
5151
title: "OpenGL".to_string(),
5252
file_name: "OpenGL".to_string(),
53-
content: include_str!("../../guide/06 OpenGL.md").to_string(),
53+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/06 OpenGL.md")).to_string(),
5454
},
5555
Guide {
5656
title: "Unit Testing".to_string(),
5757
file_name: "UnitTesting".to_string(),
58-
content: include_str!("../../guide/07 Unit testing.md").to_string(),
58+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/07 Unit testing.md")).to_string(),
5959
},
6060
Guide {
6161
title: "XHTML and azul-workbench".to_string(),
6262
file_name: "XhtmlAndAzulWorkbench".to_string(),
63-
content: include_str!("../../guide/08 XHTML and azul-workbench.md").to_string(),
63+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/08 XHTML and azul-workbench.md")).to_string(),
6464
},
6565
Guide {
6666
title: "Notes for C".to_string(),
6767
file_name: "NotesForC".to_string(),
68-
content: include_str!("../../guide/09 Notes for C.md").to_string(),
68+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/09 Notes for C.md")).to_string(),
6969
},
7070
Guide {
7171
title: "Notes for C++".to_string(),
7272
file_name: "NotesForCpp".to_string(),
73-
content: include_str!("../../guide/10 Notes for C++.md").to_string(),
73+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/10 Notes for C++.md")).to_string(),
7474
},
7575
Guide {
7676
title: "Notes for Python".to_string(),
7777
file_name: "NotesForPython".to_string(),
78-
content: include_str!("../../guide/11 Notes for Python.md").to_string(),
78+
content: include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/guide/11 Notes for Python.md")).to_string(),
7979
},
8080
]
8181
}

0 commit comments

Comments
 (0)