{"id":18485498,"url":"https://github.com/scetayh/indeux","last_synced_at":"2025-05-13T21:34:21.178Z","repository":{"id":246860538,"uuid":"818897633","full_name":"scetayh/indeux","owner":"scetayh","description":"Shell实现的静态页面索引——Indeux's Not DEUX, undeux's just UN DEUX","archived":false,"fork":false,"pushed_at":"2024-09-17T08:17:15.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-18T10:05:45.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scetayh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-06-23T07:31:06.000Z","updated_at":"2024-09-17T08:17:19.000Z","dependencies_parsed_at":"2024-07-05T15:18:36.103Z","dependency_job_id":"cd80b7be-055e-4df8-89a5-e537ddc4a997","html_url":"https://github.com/scetayh/indeux","commit_stats":null,"previous_names":["tarikko-scetayhchan/soras","tarikko-scetayhchan/indeux","scetayh/indeux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scetayh%2Findeux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scetayh%2Findeux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scetayh%2Findeux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scetayh%2Findeux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scetayh","download_url":"https://codeload.github.com/scetayh/indeux/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254031244,"owners_count":22002726,"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-06T12:45:26.679Z","updated_at":"2025-05-13T21:34:21.156Z","avatar_url":"https://github.com/scetayh.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# indeux - Indeux's Not DEUX, undeux's just UN DEUX\n\n## 简介\n\nIndeux是一个Shell实现的资源共享静态页面索引创建工具。\n\nIndeux为GitHub Pages等的静态页面创建各级索引，便于访问者浏览目录、下载文件。\n\n## 原理\n\nIndeux依靠GNU Bash和GNU Coreutils各核心工具实现。基本操作是输入输出流、字符串处理和文件操作。\n\n`indeux`遍历所在目录下的所有子目录和文件，将其写入各级文件夹的索引`index.html`。\n\n## 环境\n\n- GNU/Linux发行版、WSL、macOS、Darwin、BSD或UNIX\n- GNU Bash\n- GNU Coreutils\n- GNU Sed\n\n必须使用GNU Sed而非BSD工具集的Sed。\n\nmacOS、Darwin、BSD或UNIX用户应当从GNU FTP服务器上下载并编译安装GNU Sed。\n\n## 安装\n\n克隆并进入本仓库：\n\n```\ngit clone https://github.com/Tarikko-ScetayhChan/indeux.git\ncd indeux\n```\n\n安装已编译的文件：\n\n```\nsudo make install\n```\n\n或编译安装：\n\n```\nmake strap\n# 或`make clean \u0026\u0026 make \u0026\u0026 sudo make install`\n```\n\n## 使用\n\n执行`indeux -h`命令以获取帮助：\n\n```\nusage: indeux \u003coption\u003e\n\noptions:\n  -i    init this directory for indeux\n  -u    uninit this directory for indeux\n  -g    generate index\n  -r    remove index\n  -c    open configuration file of this directory\n  -h    print this message\n```\n\n在用户欲建立索引的目录下执行`sudo indeux -i`命令以初始化目录。\n\n执行`sudo indeux -g`命令生成索引。`indeux`在创建索引的同时会在`.indeux`目录下记录每次创建的索引。\n\n创建完成后，更新页面即可。[示例页面戳此](https://commons.tarikkochan.top)。\n\n欲删除索引，执行`sudo indeux -r`命令。\n\n欲删除记录，执行`sudo indeux -u`命令。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscetayh%2Findeux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscetayh%2Findeux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscetayh%2Findeux/lists"}