@@ -20,62 +20,62 @@ pub fn get_guide_list() -> Vec<Guide> {
20
20
Guide {
21
21
title: "Installation" . to_string( ) ,
22
22
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( ) ,
24
24
} ,
25
25
Guide {
26
26
title: "Getting Started" . to_string( ) ,
27
27
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( ) ,
29
29
} ,
30
30
Guide {
31
31
title: "Application Architecture" . to_string( ) ,
32
32
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( ) ,
34
34
} ,
35
35
Guide {
36
36
title: "CSS Styling" . to_string( ) ,
37
37
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( ) ,
39
39
} ,
40
40
Guide {
41
41
title: "Images, SVG and Charts" . to_string( ) ,
42
42
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( ) ,
44
44
} ,
45
45
Guide {
46
46
title: "Timers, Threads and Animations" . to_string( ) ,
47
47
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( ) ,
49
49
} ,
50
50
Guide {
51
51
title: "OpenGL" . to_string( ) ,
52
52
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( ) ,
54
54
} ,
55
55
Guide {
56
56
title: "Unit Testing" . to_string( ) ,
57
57
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( ) ,
59
59
} ,
60
60
Guide {
61
61
title: "XHTML and azul-workbench" . to_string( ) ,
62
62
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( ) ,
64
64
} ,
65
65
Guide {
66
66
title: "Notes for C" . to_string( ) ,
67
67
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( ) ,
69
69
} ,
70
70
Guide {
71
71
title: "Notes for C++" . to_string( ) ,
72
72
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( ) ,
74
74
} ,
75
75
Guide {
76
76
title: "Notes for Python" . to_string( ) ,
77
77
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( ) ,
79
79
} ,
80
80
]
81
81
}
0 commit comments