Fossil SCM
Wrapped the TH1 vars declared for custom skinning in backticks for better MD formatting, avoiding the need to escape underscores to prevent them from being interpreted as requesting italics. Fixed a typo in one of the variable names while in there; the visual noise of one of these escaped underscores hid the typo.
Commit
3b505e6f5567eb174454b0906e75aea909ea0237a754e31c0583a31ffe84cc13
Parent
5ef34fd764d12f0…
1 file changed
+19
-19
+19
-19
| --- www/customskin.md | ||
| +++ www/customskin.md | ||
| @@ -418,73 +418,73 @@ | ||
| 418 | 418 | |
| 419 | 419 | Before expanding the TH1 within the header and footer, Fossil first |
| 420 | 420 | initializes a number of TH1 variables to values that depend on |
| 421 | 421 | repository settings and the specific page being generated. |
| 422 | 422 | |
| 423 | - * **project_name** - The project_name variable is filled with the | |
| 423 | + * **`project_name`** - The project_name variable is filled with the | |
| 424 | 424 | name of the project as configured under the Admin/Configuration |
| 425 | 425 | menu. |
| 426 | 426 | |
| 427 | - * **project_description** - The project_description variable is | |
| 427 | + * **`project_description`** - The project_description variable is | |
| 428 | 428 | filled with the description of the project as configured under |
| 429 | 429 | the Admin/Configuration menu. |
| 430 | 430 | |
| 431 | - * **title** - The title variable holds the title of the page being | |
| 431 | + * **`title`** - The title variable holds the title of the page being | |
| 432 | 432 | generated. |
| 433 | 433 | |
| 434 | 434 | The title variable is special in that it is deleted after |
| 435 | 435 | the header script runs and before the footer script. This is |
| 436 | 436 | necessary to avoid a conflict with a variable by the same name used |
| 437 | 437 | in my ticket-screen scripts. |
| 438 | 438 | |
| 439 | - * **baseurl** - The root of the URL namespace for this server. | |
| 439 | + * **`baseurl`** - The root of the URL namespace for this server. | |
| 440 | 440 | |
| 441 | - * **secureurl** - The same as $baseurl except that if the scheme is | |
| 441 | + * **`secureurl`** - The same as $baseurl except that if the scheme is | |
| 442 | 442 | "http:" it is changed to "https:" |
| 443 | 443 | |
| 444 | - * **home** - The $baseurl without the scheme and hostname. For example, | |
| 444 | + * **`home`** - The $baseurl without the scheme and hostname. For example, | |
| 445 | 445 | if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the |
| 446 | 446 | $home will be just "/cgi-bin/fossil". |
| 447 | 447 | |
| 448 | - * **index_page** - The landing page URI as | |
| 448 | + * **`index_page`** - The landing page URI as | |
| 449 | 449 | specified by the Admin/Configuration setup page. |
| 450 | 450 | |
| 451 | - * **current_page** - The name of the page currently being processed, | |
| 451 | + * **`current_page`** - The name of the page currently being processed, | |
| 452 | 452 | without the leading "/" and without query parameters. |
| 453 | 453 | Examples: "timeline", "doc/trunk/README.txt", "wiki". |
| 454 | 454 | |
| 455 | - * **csrf_token** - A token used to prevent cross-site request forgery. | |
| 455 | + * **`csrf_token`** - A token used to prevent cross-site request forgery. | |
| 456 | 456 | |
| 457 | - * **default_csp** - [Fossil’s default CSP](./defcsp.md) unless | |
| 457 | + * **`default_csp`** - [Fossil’s default CSP](./defcsp.md) unless | |
| 458 | 458 | [overridden by custom TH1 code](./defcsp.md#th1). Useful within |
| 459 | 459 | the skin for inserting the CSP into a `<meta>` tag within [a |
| 460 | 460 | custom `<head>` element](#headfoot). |
| 461 | 461 | |
| 462 | - * **nonce** - The value of the cryptographic nonce for the request | |
| 462 | + * **`nonce`** - The value of the cryptographic nonce for the request | |
| 463 | 463 | being processed. |
| 464 | 464 | |
| 465 | - * **release_version** - The release version of Fossil. Ex: "1.31" | |
| 465 | + * **`release_version`** - The release version of Fossil. Ex: "1.31" | |
| 466 | 466 | |
| 467 | - * **manifest_version** - A prefix on the check-in hash of the | |
| 467 | + * **`manifest_version`** - A prefix on the check-in hash of the | |
| 468 | 468 | specific version of fossil that is running. Ex: "\[47bb6432a1\]" |
| 469 | 469 | |
| 470 | - * **manifest_date** - The date of the source-code check-in for the | |
| 470 | + * **`manifest_date`** - The date of the source-code check-in for the | |
| 471 | 471 | version of fossil that is running. |
| 472 | 472 | |
| 473 | - * **compiler_name** - The name and version of the compiler used to | |
| 473 | + * **`compiler_name`** - The name and version of the compiler used to | |
| 474 | 474 | build the fossil executable. |
| 475 | 475 | |
| 476 | - * **login** - This variable only exists if the user has logged in. | |
| 476 | + * **`login`** - This variable only exists if the user has logged in. | |
| 477 | 477 | The value is the username of the user. |
| 478 | 478 | |
| 479 | - * **stylesheet_url** - A URL for the internal style-sheet maintained | |
| 479 | + * **`stylesheet_url`** - A URL for the internal style-sheet maintained | |
| 480 | 480 | by Fossil. |
| 481 | 481 | |
| 482 | - * **log\_image\_url** - A URL for the logo image for this project, as | |
| 482 | + * **`logo_image_url`** - A URL for the logo image for this project, as | |
| 483 | 483 | configured on the Admin/Logo page. |
| 484 | 484 | |
| 485 | - * **background\_image\_url** - A URL for a background image for this | |
| 485 | + * **`background_image_url`** - A URL for a background image for this | |
| 486 | 486 | project, as configured on the Admin/Logo page. |
| 487 | 487 | |
| 488 | 488 | All of the above are variables in the sense that either the header or the |
| 489 | 489 | footer is free to change or erase them. But they should probably be treated |
| 490 | 490 | as constants. New predefined values are likely to be added in future |
| 491 | 491 |
| --- www/customskin.md | |
| +++ www/customskin.md | |
| @@ -418,73 +418,73 @@ | |
| 418 | |
| 419 | Before expanding the TH1 within the header and footer, Fossil first |
| 420 | initializes a number of TH1 variables to values that depend on |
| 421 | repository settings and the specific page being generated. |
| 422 | |
| 423 | * **project_name** - The project_name variable is filled with the |
| 424 | name of the project as configured under the Admin/Configuration |
| 425 | menu. |
| 426 | |
| 427 | * **project_description** - The project_description variable is |
| 428 | filled with the description of the project as configured under |
| 429 | the Admin/Configuration menu. |
| 430 | |
| 431 | * **title** - The title variable holds the title of the page being |
| 432 | generated. |
| 433 | |
| 434 | The title variable is special in that it is deleted after |
| 435 | the header script runs and before the footer script. This is |
| 436 | necessary to avoid a conflict with a variable by the same name used |
| 437 | in my ticket-screen scripts. |
| 438 | |
| 439 | * **baseurl** - The root of the URL namespace for this server. |
| 440 | |
| 441 | * **secureurl** - The same as $baseurl except that if the scheme is |
| 442 | "http:" it is changed to "https:" |
| 443 | |
| 444 | * **home** - The $baseurl without the scheme and hostname. For example, |
| 445 | if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the |
| 446 | $home will be just "/cgi-bin/fossil". |
| 447 | |
| 448 | * **index_page** - The landing page URI as |
| 449 | specified by the Admin/Configuration setup page. |
| 450 | |
| 451 | * **current_page** - The name of the page currently being processed, |
| 452 | without the leading "/" and without query parameters. |
| 453 | Examples: "timeline", "doc/trunk/README.txt", "wiki". |
| 454 | |
| 455 | * **csrf_token** - A token used to prevent cross-site request forgery. |
| 456 | |
| 457 | * **default_csp** - [Fossil’s default CSP](./defcsp.md) unless |
| 458 | [overridden by custom TH1 code](./defcsp.md#th1). Useful within |
| 459 | the skin for inserting the CSP into a `<meta>` tag within [a |
| 460 | custom `<head>` element](#headfoot). |
| 461 | |
| 462 | * **nonce** - The value of the cryptographic nonce for the request |
| 463 | being processed. |
| 464 | |
| 465 | * **release_version** - The release version of Fossil. Ex: "1.31" |
| 466 | |
| 467 | * **manifest_version** - A prefix on the check-in hash of the |
| 468 | specific version of fossil that is running. Ex: "\[47bb6432a1\]" |
| 469 | |
| 470 | * **manifest_date** - The date of the source-code check-in for the |
| 471 | version of fossil that is running. |
| 472 | |
| 473 | * **compiler_name** - The name and version of the compiler used to |
| 474 | build the fossil executable. |
| 475 | |
| 476 | * **login** - This variable only exists if the user has logged in. |
| 477 | The value is the username of the user. |
| 478 | |
| 479 | * **stylesheet_url** - A URL for the internal style-sheet maintained |
| 480 | by Fossil. |
| 481 | |
| 482 | * **log\_image\_url** - A URL for the logo image for this project, as |
| 483 | configured on the Admin/Logo page. |
| 484 | |
| 485 | * **background\_image\_url** - A URL for a background image for this |
| 486 | project, as configured on the Admin/Logo page. |
| 487 | |
| 488 | All of the above are variables in the sense that either the header or the |
| 489 | footer is free to change or erase them. But they should probably be treated |
| 490 | as constants. New predefined values are likely to be added in future |
| 491 |
| --- www/customskin.md | |
| +++ www/customskin.md | |
| @@ -418,73 +418,73 @@ | |
| 418 | |
| 419 | Before expanding the TH1 within the header and footer, Fossil first |
| 420 | initializes a number of TH1 variables to values that depend on |
| 421 | repository settings and the specific page being generated. |
| 422 | |
| 423 | * **`project_name`** - The project_name variable is filled with the |
| 424 | name of the project as configured under the Admin/Configuration |
| 425 | menu. |
| 426 | |
| 427 | * **`project_description`** - The project_description variable is |
| 428 | filled with the description of the project as configured under |
| 429 | the Admin/Configuration menu. |
| 430 | |
| 431 | * **`title`** - The title variable holds the title of the page being |
| 432 | generated. |
| 433 | |
| 434 | The title variable is special in that it is deleted after |
| 435 | the header script runs and before the footer script. This is |
| 436 | necessary to avoid a conflict with a variable by the same name used |
| 437 | in my ticket-screen scripts. |
| 438 | |
| 439 | * **`baseurl`** - The root of the URL namespace for this server. |
| 440 | |
| 441 | * **`secureurl`** - The same as $baseurl except that if the scheme is |
| 442 | "http:" it is changed to "https:" |
| 443 | |
| 444 | * **`home`** - The $baseurl without the scheme and hostname. For example, |
| 445 | if the $baseurl is "http://projectX.com/cgi-bin/fossil" then the |
| 446 | $home will be just "/cgi-bin/fossil". |
| 447 | |
| 448 | * **`index_page`** - The landing page URI as |
| 449 | specified by the Admin/Configuration setup page. |
| 450 | |
| 451 | * **`current_page`** - The name of the page currently being processed, |
| 452 | without the leading "/" and without query parameters. |
| 453 | Examples: "timeline", "doc/trunk/README.txt", "wiki". |
| 454 | |
| 455 | * **`csrf_token`** - A token used to prevent cross-site request forgery. |
| 456 | |
| 457 | * **`default_csp`** - [Fossil’s default CSP](./defcsp.md) unless |
| 458 | [overridden by custom TH1 code](./defcsp.md#th1). Useful within |
| 459 | the skin for inserting the CSP into a `<meta>` tag within [a |
| 460 | custom `<head>` element](#headfoot). |
| 461 | |
| 462 | * **`nonce`** - The value of the cryptographic nonce for the request |
| 463 | being processed. |
| 464 | |
| 465 | * **`release_version`** - The release version of Fossil. Ex: "1.31" |
| 466 | |
| 467 | * **`manifest_version`** - A prefix on the check-in hash of the |
| 468 | specific version of fossil that is running. Ex: "\[47bb6432a1\]" |
| 469 | |
| 470 | * **`manifest_date`** - The date of the source-code check-in for the |
| 471 | version of fossil that is running. |
| 472 | |
| 473 | * **`compiler_name`** - The name and version of the compiler used to |
| 474 | build the fossil executable. |
| 475 | |
| 476 | * **`login`** - This variable only exists if the user has logged in. |
| 477 | The value is the username of the user. |
| 478 | |
| 479 | * **`stylesheet_url`** - A URL for the internal style-sheet maintained |
| 480 | by Fossil. |
| 481 | |
| 482 | * **`logo_image_url`** - A URL for the logo image for this project, as |
| 483 | configured on the Admin/Logo page. |
| 484 | |
| 485 | * **`background_image_url`** - A URL for a background image for this |
| 486 | project, as configured on the Admin/Logo page. |
| 487 | |
| 488 | All of the above are variables in the sense that either the header or the |
| 489 | footer is free to change or erase them. But they should probably be treated |
| 490 | as constants. New predefined values are likely to be added in future |
| 491 |