{"id":18718526,"url":"https://github.com/highlightjs/hljs_org","last_synced_at":"2025-06-30T12:32:25.146Z","repository":{"id":45646589,"uuid":"275729270","full_name":"highlightjs/hljs_org","owner":"highlightjs","description":"The official highlight.js website.","archived":false,"fork":false,"pushed_at":"2022-10-16T14:29:28.000Z","size":346,"stargazers_count":0,"open_issues_count":2,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-25T19:59:39.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://highlightjs.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/highlightjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-29T04:22:55.000Z","updated_at":"2021-12-02T22:22:10.000Z","dependencies_parsed_at":"2023-01-20T01:25:26.906Z","dependency_job_id":null,"html_url":"https://github.com/highlightjs/hljs_org","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/highlightjs%2Fhljs_org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhljs_org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhljs_org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/highlightjs%2Fhljs_org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/highlightjs","download_url":"https://codeload.github.com/highlightjs/hljs_org/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223519435,"owners_count":17158875,"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":[],"created_at":"2024-11-07T13:21:48.241Z","updated_at":"2024-11-07T13:21:48.819Z","avatar_url":"https://github.com/highlightjs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# highlight.js Web site\n\n\n## Development\n\nThe site is a pretty standard Django application. Some interesting parts:\n\n- `hljs_org/settings.py` — default project settings. Those that are read from `env(...)` can be overwritten by env vars.\n\n- `hljs_org/management/commands/updatehljs.py` — deployment script that can be run both manually and as a reaction on a GitHub webhook posting to `/api/release/`.\n\n- `hljs_org/views.py::release()` — GitHub webhook end point.\n\n- `hljs_org/lib.py` — logic for working with the highlight.js source directory (parsing versions, readme, building a .zip archive for download, etc.)\n\n(There are indeed no tests. Never needed them for this project :-) )\n\n\n## Local installation\n\n\n### System requirements\n\n- Python 3.6+\n\n- dev package for libmemcached\n\n    On a Mac:\n\n    ```sh\n    brew install libmemcached\n    ```\n\n    On a Debian family Linux:\n\n    ```sh\n    sudo apt install libmemcached-dev\n    ```\n\n    **Alternatively**, comment out `pylibmc` in requirements.txt, it should work without a cache.\n\n- Local PostgreSQL. Installation is left as an exercise for the reader. Also feel free to change `hljs_org/settings.py` to use something simpler, the code only uses very basic SQL.\n\n    Create the database with `createdb hljs_org`.\n\n\n### App\n\nInstallation:\n\n```sh\npython3 -m venv venv\n. venv/bin/activate\npip install -r requirements.txt\n./manage.py migrate\n```\n\nRunning:\n\n```\n./manage.py runserver\n```\n\nNote, the site needs access to a checkout of highlight.js itself, which it expects to be at `../highlight.js` by default. You can override the location via an env var `HLJS_SOURCE`. Also, refer to `hljs_org/settings.py` for other tweakable settings.\n\n\n## Production deployment\n\nDeployment is done manually by the current owner of highlightjs.org, all the configs are outside of this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhljs_org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhighlightjs%2Fhljs_org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhighlightjs%2Fhljs_org/lists"}