-
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
Description
Hi!
I like the idea of tldr
! But it would be very nice to have an easier way to add Markdown files for custom commands.
I want to add tldr-pages (without replacing or forking existing pages) for custom commands (available to my team only).
Expected behavior
I can use multiple data sources in .tldrrc
and can also add local directories (or at least local zip files):
{
"repositories": [
"http://tldr.sh/assets/tldr.zip",
"~/Projects/build-tools-tldr"
]
}
Actual behaviour
I have to run:
zip -r tldr.zip . && npx serve .
I have to add repository to .tldrrc:
{
"repository": "http://localhost:5000/tldr.zip"
}
…and I have no longer access to the repository at http://tldr.sh/assets/tldr.zip.
I could fork the tldr-repository… but only for adding some Markdown files?
Log, debug output
Scenario 1: Using local file
Putting local file into "repository" section:
.tldrrc:
{
"repository": "/tmp/tldr.zip"
}
Output:
Page not found. Updating cache...Error: Invalid URI "/tmp/tldr.zip"
Scenario 2: Using working repository with custom files only
.tldrrc:
{
"repository": "http://localhost:5000/tldr.zip"
}
Output:
$ tldr echo
✔ Page not found. Updating cache...
✔ Creating index...
Page not found.
If you want to contribute it, feel free to send a pull request to: https://github.com/tldr-pages/tldr
Environment
- Directory structure for custom tldr pages is simple (
pages/build-tools/do-something.md
etc.)
haloislet, bl-ue and BrutalSimplicity