-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,591 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
/.pytest_cache/ | ||
/build/ | ||
/dist/ | ||
/docs/_build/ | ||
/htmlcov/ | ||
/tmp/ | ||
/toot-*.tar.gz | ||
debug.log | ||
/pyrightconfig.json | ||
/book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Overrides for the docs theme */ | ||
table { width: 100% } | ||
table th { text-align: left } | ||
code { white-space: pre } | ||
h2, h3 { margin-top: 2.5rem; } | ||
h4, h5 { margin-top: 2rem; } | ||
|
||
td.code { | ||
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace !important; | ||
font-size: 0.875em; | ||
width: 20%; | ||
white-space: nowrap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[book] | ||
authors = ["Ivan Habunek"] | ||
language = "en" | ||
multilingual = false | ||
src = "docs" | ||
title = "toot" | ||
|
||
[output.html] | ||
additional-css = ["book.css"] | ||
|
||
[preprocessor.toc] | ||
command = "mdbook-toc" | ||
renderer = ["html"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Summary | ||
|
||
[Introduction](introduction.md) | ||
|
||
- [Installation](installation.md) | ||
- [Usage](usage.md) | ||
- [Advanced](advanced.md) | ||
- [TUI](tui.md) | ||
- [Contributing](contributing.md) | ||
- [Changelog](changelog.md) | ||
- [Release procedure](release.md) | ||
|
||
[License](license.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Advanced usage | ||
============== | ||
|
||
Disabling HTTPS | ||
--------------- | ||
|
||
You may pass the `--disable-https` flag to use unencrypted HTTP instead of | ||
HTTPS for a given instance. This is inherently insecure and should be used only | ||
when connecting to local development instances. | ||
|
||
```sh | ||
toot login --disable-https --instance localhost:8080 | ||
``` | ||
|
||
Using proxies | ||
------------- | ||
|
||
You can configure proxies by setting the `HTTPS_PROXY` or `HTTP_PROXY` | ||
environment variables. This will cause all http(s) requests to be proxied | ||
through the specified server. | ||
|
||
For example: | ||
|
||
.. code-block:: sh | ||
|
||
export HTTPS_PROXY="http://1.2.3.4:5678" | ||
toot login --instance mastodon.social | ||
|
||
**NB:** This feature is provided by | ||
[requests](http://docs.python-requests.org/en/master/user/advanced/#proxies>) | ||
and setting the environment variable will affect other programs using this | ||
library. | ||
|
||
This environment can be set for a single call to toot by prefixing the command | ||
with the environment variable: | ||
|
||
``` | ||
HTTPS_PROXY="http://1.2.3.4:5678" toot login --instance mastodon.social | ||
``` |
Oops, something went wrong.