Skip to content

Commit 8beed38

Browse files
authored
Update page source to use main branch (#200)
1 parent 8e6ea51 commit 8beed38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ export TLDR_COLOR_PARAMETER="white"
6666
export TLDR_LANGUAGE="es"
6767
export TLDR_CACHE_ENABLED=1
6868
export TLDR_CACHE_MAX_AGE=720
69-
export TLDR_PAGES_SOURCE_LOCATION="https://raw.githubusercontent.com/tldr-pages/tldr/master/pages"
69+
export TLDR_PAGES_SOURCE_LOCATION="https://raw.githubusercontent.com/tldr-pages/tldr/main/pages"
7070
export TLDR_DOWNLOAD_CACHE_LOCATION="https://tldr-pages.github.io/assets/tldr.zip"
7171
```
7272

7373
### Cache
7474

75-
Cache is downloaded from `TLDR_DOWNLOAD_CACHE_LOCATION` (defaults to the one described in [the client specification](https://github.com/tldr-pages/tldr/blob/master/CLIENT-SPECIFICATION.md#caching)), unzipped and extracted into the [local cache directory](#cache-location). Pages are loaded directly from `TLDR_PAGES_SOURCE_LOCATION` if `tldr <command>` is used.
75+
Cache is downloaded from `TLDR_DOWNLOAD_CACHE_LOCATION` (defaults to the one described in [the client specification](https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#caching)), unzipped and extracted into the [local cache directory](#cache-location). Pages are loaded directly from `TLDR_PAGES_SOURCE_LOCATION` if `tldr <command>` is used.
7676

7777
* `TLDR_CACHE_ENABLED` (default is `1`):
7878
* If set to `1`, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn't exist or is too old.
@@ -153,7 +153,7 @@ If you wish to use your own instance of the tldr pages instead of the default re
153153
can either use the `--source` flag when using tldr or by specifying the following environment variables:
154154

155155
* `TLDR_PAGES_SOURCE_LOCATION` to control where to get individual pages from
156-
* defaults to `https://raw.githubusercontent.com/tldr-pages/tldr/master/pages`
156+
* defaults to `https://raw.githubusercontent.com/tldr-pages/tldr/main/pages`
157157
* it can also point to local directory using `file:///path/to/directory`
158158
* `TLDR_DOWNLOAD_CACHE_LOCATION` to control where to pull a zip of all pages from
159159
* defaults to `https://tldr-pages.github.io/assets/tldr.zip`

tldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
REQUEST_HEADERS = {'User-Agent': 'tldr-python-client'}
2424
PAGES_SOURCE_LOCATION = os.environ.get(
2525
'TLDR_PAGES_SOURCE_LOCATION',
26-
'https://raw.githubusercontent.com/tldr-pages/tldr/master/pages'
26+
'https://raw.githubusercontent.com/tldr-pages/tldr/main/pages'
2727
).rstrip('/')
2828
DOWNLOAD_CACHE_LOCATION = os.environ.get(
2929
'TLDR_DOWNLOAD_CACHE_LOCATION',

0 commit comments

Comments
 (0)