mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 21:46:16 -04:00
docs: Dynamically turn subdirectives into links to anchors (#190)
* docs: Dynamically turn subdirectives into links to anchors * Make entire rows clickable on directive page's table
This commit is contained in:
parent
3dac36ebc8
commit
c5e3aef0a2
8 changed files with 231 additions and 124 deletions
|
@ -2,10 +2,37 @@
|
|||
title: Caddyfile Directives
|
||||
---
|
||||
|
||||
<style>
|
||||
#directive-table table {
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#directive-table tr:hover {
|
||||
background: rgba(0, 0, 0, 10%);
|
||||
}
|
||||
|
||||
#directive-table tr td:first-child {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#directive-table a:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
width: 100vw;
|
||||
}
|
||||
</style>
|
||||
|
||||
# Caddyfile Directives
|
||||
|
||||
The following directives come standard with Caddy, and can be used in the HTTP Caddyfile:
|
||||
|
||||
<div id="directive-table">
|
||||
|
||||
Directive | Description
|
||||
----------|------------
|
||||
**[abort](/docs/caddyfile/directives/abort)** | Aborts the HTTP request
|
||||
|
@ -38,6 +65,7 @@ Directive | Description
|
|||
**[try_files](/docs/caddyfile/directives/try_files)** | Rewrite that depends on file existence
|
||||
**[uri](/docs/caddyfile/directives/uri)** | Manipulate the URI
|
||||
|
||||
</div>
|
||||
|
||||
## Syntax
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue