Commit 5a220f1
authored
Add initial improved click-to-copy for resources page (#2514)
* WIP: face name and table generation
* HIDEOUS code
* WIP-ish with tiled images
* Copyables copy but too wide and ugly.
* Move resources info sections into includes files
* Create doc/_includes
* Move links.rst there
* Move the resource inclusion there using the include_file feature from the Vfs
* Move ref check to function for it
* WIP we have non-huge copy buttons
* Add custom JS to the force-copy temp fix and clean up header
* Add custom JS call to target ezcopy class
* Add CSS for buttons
* Very ugly code for generating the buttons
* WIP commit: seems to render correctly
* Clean up table body generation
* Move image tile to new function
* Add unknown file handling and clean up more
* More indents
* Add first draft of inlinable literals for Arcade
* Wrap the literal and button in a span
* Add styling
* Remove indent argument from function likely to be removed soon
* Move and comment some things
* Quote fix + explain how / why it works
* Remove kludges and improve column durability
* Use iterators instead of non-stop modulo and variable references
* Simplify column detection: 1 column when n=1, 3 for fonts, 2 for all else
* Add arguments to allow passing in the value to the table generation from outside
* Improve clarity and durability for resource paths
* fix missing variable name in create_resources_path
* rename create_resources_path to path_as_resource_handle:
* Fix wrong quoting behavior for copyable embeds
* s/quote(/html_quote(/g
* use better resource paths
* explain a few things better
* Partly switch over to a clean nested config dict
* Start switching over config reading
* Partly decruft the methods
* Remove cruft config storage replaced in last commit
* Re-enable resource handle prefix as table caption
* Use Python's standard library to handle HTML escaping
* Remove custom html quote function
* Add prefix of handle string as table caption with CSS to make it match the copyables more
* Clean imports, constants, and commented-out code
* Whitespace + more redundancies removed
* Encapsulate font data parsing from filenames
* Unify media embeds
* Fix header row generation + move a few things
* Fix include behavior + add copy button directions
* Fix heading generation and start improving the ordering for auto-generation
* Fix the include ordering for the resources pages
* Add site-wide |Copy Button substitution
* Add rough instructions for the copy buttons based on feedback
* Encapsulate table header + header row behavior
* Some more consolidation
* Separate concerns for table body, header, and conf
* Add basic file tile thumbing (ty @DigiDuncan)
* Remove old thumbnailing for unknown files
* Remove code from .rst generation
* Remove CSS supporting the .. raw:: html for unknown file types
* Improve example copy button (almost-correct style)
* Styles almost correctly with hover (inline is breaking)
* Add .doc-ui-example-dummy class intended to shut off UI behavior on dummy elements
* CSS changes to support the UI elements and on-page instructions
* Document some flaws better
* Add |Example Copy Button| substitution for Sphinx embeds
* Add fall state as a stop-gap for the blue alien
* Remove more cruft
* Remove unused code + extra whitespace in a regex
* Remove linking experiment for now
* Switch glsl shader listing off again
* Doc cross-ref trick works sorta?1 parent 4fe91fa commit 5a220f1
File tree
16 files changed
+734
-222
lines changed- arcade/resources/assets/images/alien
- doc
- _includes
- _static
- css
- filetiles
- js
- api_docs/images
- util
16 files changed
+734
-222
lines changedFile renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
219 | 222 | | |
| 223 | + | |
220 | 224 | | |
221 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
222 | 235 | | |
223 | 236 | | |
224 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
225 | 250 | | |
| 251 | + | |
| 252 | + | |
226 | 253 | | |
227 | 254 | | |
228 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
229 | 331 | | |
230 | 332 | | |
231 | 333 | | |
| |||
Loading
Loading
Loading
0 commit comments