{"id":23002876,"url":"https://github.com/likianta/code-snippet-book","last_synced_at":"2026-04-18T19:32:37.805Z","repository":{"id":178874148,"uuid":"662387999","full_name":"likianta/code-snippet-book","owner":"likianta","description":"Craft your fancy works with the loved code snippets.","archived":false,"fork":false,"pushed_at":"2023-07-28T10:24:53.000Z","size":1558,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T18:39:26.838Z","etag":null,"topics":["code-copy-paste","code-gist","code-snippet","copy-code","gists","nextra","python"],"latest_commit_sha":null,"homepage":"https://likianta.github.io/code-snippet-book/","language":"MDX","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/likianta.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-05T03:10:26.000Z","updated_at":"2023-07-18T09:35:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1fd3b7f-4774-4ed0-a3b7-af24b5d4d6a0","html_url":"https://github.com/likianta/code-snippet-book","commit_stats":null,"previous_names":["likianta/code-snippet-book"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/likianta/code-snippet-book","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likianta%2Fcode-snippet-book","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likianta%2Fcode-snippet-book/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likianta%2Fcode-snippet-book/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likianta%2Fcode-snippet-book/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likianta","download_url":"https://codeload.github.com/likianta/code-snippet-book/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likianta%2Fcode-snippet-book/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-copy-paste","code-gist","code-snippet","copy-code","gists","nextra","python"],"created_at":"2024-12-15T07:12:30.792Z","updated_at":"2026-04-18T19:32:37.775Z","avatar_url":"https://github.com/likianta.png","language":"MDX","readme":"# Likianta Code Snippet Book\n\n## Motivation\n\nthis is mainly for showing something via **[Nextra](https://nextra.site/)** site generator. visit the deployed site effect [here](https://likianta.github.io/code-snippet-book).\n\n## Installation\n\nthe main stack is nodejs (nextjs), while the plugin scripts are written in python.\n\nwe need to both init them:\n\nnodejs:\n\n```sh\n# install by `project.json`\nnpm install\n```\n\npython (poetry):\n\n```sh\n# install by pyproject.toml\npoetry update\n```\n\n## Development\n\n```sh\nnpm run dev\n```\n\n## Deploy\n\n```sh\n# build but not deploy (useful for checking if build worked)\nnpm run build\n\n# build and deploy\nnpm run deploy\n```\n\nnotice: make sure there exists `./out/.nojekyll` file (an empty file). otherwise the github pages will be failed finding javascript and stylesheets.\n\n## Test deployment in local\n\n```\n|= \u003cthis_project\u003e\n    |= docs\n        |- index.html\n        |- ...\n|= \u003ctemp_dir\u003e\n    |= code-snippet-book  # symlinked from `\u003cthis_project\u003e/docs`\n        |- index.html\n        |- ...\n```\n\n```sh\nnpm run build\npoetry run python3 -m http.server 3001 -d \u003ctemp_dir\u003e\n```\n\nvisit http://localhost:3001/code-snippet-book to see effect.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikianta%2Fcode-snippet-book","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikianta%2Fcode-snippet-book","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikianta%2Fcode-snippet-book/lists"}