This website requires JavaScript.
Explore
Help
Register
Sign In
ctome
/
tldr
mirror of
https://github.com/CrimsonTome/tldr.git
Watch
1
Star
0
Fork
You've already forked tldr
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
e9d658923d
tldr
/
Makefile
4 lines
73 B
Makefile
Raw
Normal View
History
Unescape
Escape
feature: pages index. By having an index for the pages, it'd allow clients to build autocomplete's and show an index of pages making only one request (think `tldr list`). Subsequent caching of this file would prevent further requests. Included is a makefile to easily rebuild the index. It could be tailored in case the pages structure changed. In a particular case, the web client would benefit greatly from an index. It'd know exactly what folder a command is in and thus the number of requests would drop from 4 to 1.
2015-03-02 18:21:27 +00:00
index
:
refactors index building script to output JSON also removes index.md
2015-03-05 00:10:08 +00:00
@TLDRHOME
=
`
pwd
`
./scripts/build_index.rb
feature: pages index. By having an index for the pages, it'd allow clients to build autocomplete's and show an index of pages making only one request (think `tldr list`). Subsequent caching of this file would prevent further requests. Included is a makefile to easily rebuild the index. It could be tailored in case the pages structure changed. In a particular case, the web client would benefit greatly from an index. It'd know exactly what folder a command is in and thus the number of requests would drop from 4 to 1.
2015-03-02 18:21:27 +00:00
@echo
"Index rebuilt."