Skip to content
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

Custom pages? #6

Closed
neezer opened this issue Jan 5, 2024 · 1 comment
Closed

Custom pages? #6

neezer opened this issue Jan 5, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@neezer
Copy link

neezer commented Jan 5, 2024

This is pretty great (works great on OpenBSD too), but I'd love to add custom pages for my local scripts & commands.

What about being able to specify a second lookup directory path? tinytldr could look there first, then fallback to the one specified in PAGES_PATH... ?

@kovmir kovmir added enhancement New feature or request question Further information is requested and removed enhancement New feature or request labels Jan 10, 2024
@kovmir
Copy link
Owner

kovmir commented Jan 10, 2024

That is already possible, just include your folder and re-build page index:

TLDR_PAGES="$HOME/.local/share/tinytldr/pages"
mkdir "$TLDR_PAGES/mypages"
echo '# My custom page' > "$TLDR_PAGES/mypages/testpage.md"
tldr -u
tldr testpage

@kovmir kovmir closed this as completed Jan 11, 2024
@kovmir kovmir self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants