Commit 491feae
committed
Respect --template flag for custom theme support
The standalone Aliki generator was hardcoding @template_dir to
its own template directory, ignoring @options.template_dir. This
broke the --template flag, preventing third-party themes like
rorvswild-theme-rdoc from rendering with their own templates.
- Use @options.template_dir instead of hardcoded path
- Generalize write_style_sheet to copy css/, js/, fonts/, and
images/ subdirectories so custom templates with fonts and extra
assets work correctly1 parent b233a5a commit 491feae
File tree
2 files changed
+15
-16
lines changed- lib/rdoc/generator
- test/rdoc/generator
2 files changed
+15
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 135 | + | |
140 | 136 | | |
141 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
142 | 140 | | |
143 | | - | |
| 141 | + | |
| 142 | + | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments