Technical Guideline to the Hub
This is a short overview on the technical structure of the hub.
Last updated
Was this helpful?
This is a short overview on the technical structure of the hub.
Last updated
Was this helpful?
The Hub and the Project depends on a series of software technologies, handshakes and built-in models. This section is present under the purview of the Legal Stature of the hub.
GitBook is the documentation software on which the hub is located. This page, the website, the sub-domain of hosting, well, most of the software is provided by GitBook. View the required GitBook documentation in the official site linked below, to learn about the editing features.
Since we can't add all the members of the project on GitBook due to technical limitations, we have used GitSync (by GitBook) to sync our documentation with GitHub. It is available at the link listed below. Only members with authorized access roles are allowed to commit to it.
We used to, and still continue to, hold an archive of all the materials that we link in this documentation on Google Drive. We may not include URLs, however.
The Hub can be completely accessed offline, using Git and Obsidian.
You'll need Git and Obsidian software. To download the required applications, use the following command.
Then, you'll need to clone the hub locally so that it'll work on device. To do that, type the following commands.
Footnotes: cd Documents will select the Documents folder on device (not on any online service) locally, and you can change it to any directory.
After cloning it on device, open Obsidian. Then click on open a new vault.
In the address bar of File Explorer, paste this directory, and then click on "Open" (or "select folder".)
Then click on "Trust". After that, go to the settings icon near the name of the workspace, click on community plugins, enable the community plugins part.
Enable the Git Plugin. Go to the Settings (Gear Icon) of the Git Plugin and set Hostname to any name to identify your device with.
That's all. Sync has been set up!
If you have access to edit the repository then you can automatically edit it from there itself.
If you don't, just don't edit the text files, as it will force an commit update which you might not have permission to do so. In order to prevent accidental edits from happening, you can turn on the "Reading View" by clicking on the book icon near top-right corner of the app.
Now extract the zip file and place the extracted folder in the Obsidian app folder located on your device.
Android: Internal Memory -> Obsidian (which is /storage/emulated/0/Obsidian
)
iOS: On my iPhone or On my iPad -> Obsidian folder (with the obsidian logo.)
Now turn off Wi-Fi and mobile data, and open Obsidian.
Switch to the vault with the name "Troopers-Knowledge-Hub".
Open the Command palette (if you're on mobile, this will located in the 3-lines menu option in the bottom bar. The icon of the "Command palette" in the sub-menu will be a command prompt/terminal).
Run the command and click on yes when prompted. (DON'T SKIP THIS STEP.)
Open Obsidian, click on the Gear icon in the menu that is on the left (if on mobile, pull from the left side to view it).
Go to Community Plugins -> Git Settings (click on the gear icon next to the git plugin)
Scroll down to the author information section and fill out the Username (GitHub) and Personal Access Token box.
Close the dialog box and repeat steps 11 and 12. Now scroll down to author information again and fill out the author name and email with your details.
Turn back Wi-Fi/Mobile Data On, and open the Command palette (if you're on mobile, this will located in the ==3-lines menu option== in the bottom bar. The icon of the "Command palette" in the sub-menu will be a command prompt/terminal).
Type in the command.
Wait for the app to show a pop-up notification near the bottom that states "Finished pull".
Now, your vault is ready! You can view the hub offline whenever you want. Few pointers:
If you have access to edit the repository then you can automatically edit it from there itself.
If you don't, just don't edit the text files, as it will force an commit update which you might not have permission to do so. In order to prevent accidental edits from happening, you can turn on the "Reading View" by clicking on the book icon near top-right corner of the app.
The link to the back end is.
Then go to this link: and create a Personal Access Token with the "repo" option ticked (it will automatically tick all the sub-options under it). Copy the token and store it safely, you will need it later.
Then download this snapshot of the hub that is stored on our drive. ->