{"id":24568643,"url":"https://github.com/tourhunter-com/help-tourhunter-com","last_synced_at":"2026-01-03T17:05:04.358Z","repository":{"id":35135958,"uuid":"209930072","full_name":"tourhunter-com/help-tourhunter-com","owner":"tourhunter-com","description":"TourHunter Help Center","archived":false,"fork":false,"pushed_at":"2023-04-12T05:38:20.000Z","size":17332,"stargazers_count":5,"open_issues_count":6,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T14:54:48.216Z","etag":null,"topics":["customer-support","documentation","feedback","help-center","knowledge-base","support","tutorials","user-guide"],"latest_commit_sha":null,"homepage":"https://help.tourhunter.com","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tourhunter-com.png","metadata":{"files":{"readme":"README.md","changelog":"Changed.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-21T05:27:40.000Z","updated_at":"2024-05-31T08:50:44.000Z","dependencies_parsed_at":"2023-02-16T13:30:28.027Z","dependency_job_id":null,"html_url":"https://github.com/tourhunter-com/help-tourhunter-com","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tourhunter-com%2Fhelp-tourhunter-com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tourhunter-com%2Fhelp-tourhunter-com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tourhunter-com%2Fhelp-tourhunter-com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tourhunter-com%2Fhelp-tourhunter-com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tourhunter-com","download_url":"https://codeload.github.com/tourhunter-com/help-tourhunter-com/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243978481,"owners_count":20378042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customer-support","documentation","feedback","help-center","knowledge-base","support","tutorials","user-guide"],"created_at":"2025-01-23T14:54:56.020Z","updated_at":"2026-01-03T17:05:04.281Z","avatar_url":"https://github.com/tourhunter-com.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTourHunter Help Center\u003c/h1\u003e\n\nLive: https://help.tourhunter.com\n\nThe repository is a part of the [TourHunter Organization](https://github.com/tourhunter-com).\n\nThis project and everyone participating in it is governed by the [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## Contributing\n\nPlease read through our [Contributing Guidelines](CONTRIBUTING.md) and [Installation Instructions](INSTALL.md).\n\n## How it works\n\n### Internationalization\n\nHas the following components:\n\n- fields in front matter\n- directory structure similar for different languages (i.e. you create files for every translation under their own language directory `/en/_posts/post1`, `/ru/_posts/post1`, etc.)\n- config values\n\n### Search\n\n[SimpleJekyllSearch documentation](https://github.com/christian-fei/Simple-Jekyll-Search#usage)\n\n#### Fields in front matter to use in layouts (filtering)\n\nAll posts and pages have 2 fields:\n\n- `ref` (effectively unique id of the page or post)\n- `lang` (2 letter language code in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format)\n\nAnd the layouts use these fields to, for example, show only the language already selected by the reader.\n\n#### Directory structure\n\nFor every supported language you have a dir:\n\n- `_en/`\n- `_ru/`\n\n(Under the hood these are [Jekyll collections](https://jekyllrb.com/docs/collections/), see also: `_config.yml`.\n\n#### Config values\n\nThere are a few config files for convenience.\n\n**Jekyll config values**\n\nOne - common Jekyll config. The part related to i18n is this:\n\n```ruby\ndefaults:\n #languages\n -\n  scope:\n   path: \"en\"\n  values:\n   lang: \"en\"\n -\n  scope:\n   path: \"ru\"\n  values:\n   lang: \"ru\"\n```\n\nThis means, that, when you browse files under `en/`, for example, your `site.lang` automatically becomes `en` (and you get all the search results, layouts, etc. for the chosen language).\n\n**i18n configs**\n\nI've put them under `_data/i18n`. They contain translations used in pages, i.e. common lexemes like \"Category\", section names, etc.\n\n(Your old en.yml, ru.yml, etc.)\n\nExample part of such file:\n\n ```ruby\nmain:\n  welcomeSection:\n    anchor: how\n    heading: How can we help?\n    p1: Looking for something? Search it here!\n```\n\nAnd these values are used in templates like this:\n\n```ruby\n{{site.data.i18n[page.lang].categories.category}}:\n```\n\n**Categories config**\n\nLocated in `_data/categories.yml`, this is main place to store info about categories. Right now it looks like this:\n\n```ruby\ncategories:\n\n  - title:\n      en: \"Getting Started\"\n      ru: \"Начало работы\"\n    desc:\n      en: \"Getting started desc from _data/categories.yml\"\n      ru: \"Начало работы... етц\"\n```\n\nAnd that's all. Also check `_layouts` directory contents for understanding, how all these vars are used.\n\n## License\n\nThis project is open source and available freely under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftourhunter-com%2Fhelp-tourhunter-com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftourhunter-com%2Fhelp-tourhunter-com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftourhunter-com%2Fhelp-tourhunter-com/lists"}