-
-
Notifications
You must be signed in to change notification settings - Fork 201
add --index-files flag, and turn off index file checking by default
#1777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
4a3a2a1
a1fa4b4
e8d07c3
5296d23
73a6a4d
23b8092
c3fab82
51afc96
2fc3f29
a59ea60
5173748
118a6f0
c2504dc
67322d7
b55f493
b217503
bb55866
4362cdf
8d25acd
f6b678e
1d76955
ed499f7
a4f7497
0fd19b7
3490256
82b537b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -452,12 +452,34 @@ Options: | |
| Remap URI matching pattern to different URI | ||
|
|
||
| --fallback-extensions <FALLBACK_EXTENSIONS> | ||
| Test the specified file extensions for URIs when checking files locally. | ||
| Multiple extensions can be separated by commas. Extensions will be checked in | ||
| order of appearance. | ||
| When checking locally, attempts to locate missing files by trying the given | ||
| fallback extensions. Multiple extensions can be separated by commas. Extensions | ||
| will be checked in order of appearance. | ||
|
|
||
| Example: --fallback-extensions html,htm,php,asp,aspx,jsp,cgi | ||
|
|
||
| Note: This option only takes effect on `file://` URIs which do not exist. | ||
|
|
||
| --index-files <INDEX_FILES> | ||
| When checking locally, resolves directory links to an index file within the | ||
| directory. The argument is a comma-separated list of index file names to search | ||
| for. Index files are attempted in the order given, and at least one must exist | ||
| in order for a directory link to be considered valid. | ||
|
|
||
| The special name `.` can be used to resolve directory links to the directory | ||
| itself. When `.` is specified, a directory link will be accepted as long as the | ||
| directory exists. This is the default behavior. | ||
|
||
|
|
||
| An empty string can be passed to reject all local directory links. This will | ||
| require all links to explicitly name an HTML file, rather than linking to a | ||
| directory. | ||
|
|
||
| Example: --index-files index.html,readme.md | ||
|
|
||
| Note: This option only takes effect on `file://` URIs which exist and point to a directory. | ||
|
|
||
| [default: .] | ||
|
|
||
| -H, --header <HEADER:VALUE> | ||
| Set custom header for requests | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <p id="fragment">boop</p> |
Uh oh!
There was an error while loading. Please reload this page.