diff --git a/.github/build.sh b/.github/build.sh
new file mode 100755
index 0000000..f501ff3
--- /dev/null
+++ b/.github/build.sh
@@ -0,0 +1,69 @@
+#!/bin/bash
+
+# Exit on any error
+set -e
+export OPENAI_TEMPERATURE=0.7
+rm -rf docs/*
+rm -rf workspace/download/*
+
+# rename files
+python .github/scripts/file/rename.py
+
+echo "Files renamed successfully!"
+
+# update encoding
+
+.github/scripts/file/encoding/fix_encoding.sh
+
+# detect entry
+python .github/scripts/config/hierarchy/detect_entry.py
+
+echo "Entry detected successfully!"
+
+# generate directory meta
+python .github/scripts/ai/archive/gen_dir_meta.py
+
+echo "Directory meta generated successfully!"
+
+# make sure the global catalog is up to date
+python .github/scripts/others/catalog.py
+
+echo "Global catalog generated successfully!"
+
+# generate md5 list
+python .github/scripts/others/get_md5_list.py
+
+echo "MD5 list generated successfully!"
+
+# generate page
+python .github/scripts/page/gen_page.py
+
+echo "Page generated successfully!"
+
+# generate file meta
+python .github/scripts/ai/archive/gen_file_meta.py
+# echo "File meta generation skipped!"
+echo "File meta generated successfully!"
+
+# add metadata to page if not exists, such as link and archived date
+python .github/scripts/file/add_config.py
+
+echo "Metadata added successfully!"
+
+python .github/scripts/page/embed_text.py
+
+echo "add file info"
+
+# Generate table of contents
+python .github/scripts/toc/her_toc.py
+
+echo "Table of contents generated successfully!"
+
+# temporially workaround?
+python .github/scripts/file/add_config_from_page.py
+# why first time not successful?
+
+python .github/scripts/file/gen_search_index.py
+python .github/scripts/file/analysis_search_index.py
+
+echo "Search index generated successfully!"
diff --git a/.github/catalog.yml b/.github/catalog.yml
new file mode 100644
index 0000000..f269616
--- /dev/null
+++ b/.github/catalog.yml
@@ -0,0 +1,6 @@
+.:
+ name: .
+ description: 根目录,按照内容与来源分类
+测试:
+ name: 测试
+ description: ''
diff --git a/.github/md5.yml b/.github/md5.yml
new file mode 100644
index 0000000..5ceca6b
--- /dev/null
+++ b/.github/md5.yml
@@ -0,0 +1,4 @@
+测试.txt:
+ name: 测试.txt
+ path: 测试/测试.txt
+ md5: 418e2c7fb040367d77776c3dbd200164
diff --git a/.github/prompts/check_related.md.template b/.github/prompts/check_related.md.template
new file mode 100644
index 0000000..6c3e357
--- /dev/null
+++ b/.github/prompts/check_related.md.template
@@ -0,0 +1,28 @@
+这里是跨性别中文数字档案馆,我们收录任何与广义的中文跨性别/酷儿/
+多元性别认同与性别表达相关的内容,包括但不限于:
+
+- 生命故事与过渡经历
+- 医疗资源与经验分享
+- 法律政策与社会环境
+- 数据统计与研究资料
+- 反映生存现状的记录
+- 文学艺术与创作表达
+
+我们执行了一些搜索引擎的关键词查询查询,需要你进一步检查每个查询结果是否确实与跨性别
+(mtf、ftm 等)、CDTS、酷儿、Trans、人妖、性转、变性、易性癖、两性畸形、易装/变装、男娘、伪娘、
+男性女性化、女装大佬、娘炮、反串、自宫、非二元性别等相关,
+如果相关,请给出 True,否则请给出 False。如果不确定,请给出 NotSure。我们会根据你的判断
+对网页进行访问和收录。
+
+## Query Result
+
+- title: {title}
+- link: {link}
+- snippet: {snippet}
+
+## Instructions
+
+请检查查询结果是否与跨性别相关,如果相关,请给出 True,否则请给出 False。
+如果不确定,请给出 NotSure。由于搜索引擎中可能有大量的垃圾数据,只有在明确相关,
+例如文中的一部分明确涉及跨性别相关的议题时,请给出 True,否则请给出 False 或者
+NotSure。有很多文本可能是大量的无关信息的堆砌,需要排除。请尽可能做出判断。
diff --git a/.github/prompts/gen_dir_meta.md.template b/.github/prompts/gen_dir_meta.md.template
new file mode 100644
index 0000000..89890c9
--- /dev/null
+++ b/.github/prompts/gen_dir_meta.md.template
@@ -0,0 +1,32 @@
+这里是跨性别中文数字档案馆,我们需要你帮忙标记每个目录的分类信息,
+用中文撰写对应的描述信息、和标签。
+
+本仓库是伪娘 TS 变身与跨性别相关漫画的档案仓库,我们收集各种二次元性转漫画、
+伪娘或男娘漫画、变身漫画、跨性别漫画等。
+
+性转漫画是指描绘角色性别转换的漫画作品。
+伪娘/男娘漫画通常描绘生理性别为男性但以女性形象出现的角色。
+变身漫画涉及角色外表或性别的改变情节。
+跨性别漫画围绕性别认同与生理性别不一致的人物展开故事。
+
+这些作品可能涉及性别认同、自我探索等主题。
+
+以下是对应的一些目录信息:
+
+## Directory Information
+
+- **Directory Path**: {directory_path}
+- **Directory Files**:
+ ```
+ {directory_files}
+ ```
+## Instructions
+
+请为上述目录生成以下元数据:
+
+- **描述**:提供目录内容的摘要和介绍,尽可能详细。
+- **标签**:列出描述目录内容或主题的相关标签或关键词。
+
+确保元数据准确。描述应为详细、信息丰富的几段话,尽可能详细、具体地讲解目录中的内容,
+适当摘抄文中出现的句子和内容。标签应相关且具体。所有的标签和描述信息均应为中文。如果
+你已知的信息不足以判断对应的标签和描述信息,请填写“未知”,或表明这是某个资料的一部分。
diff --git a/.github/prompts/gen_file_meta.md.template b/.github/prompts/gen_file_meta.md.template
new file mode 100644
index 0000000..d624677
--- /dev/null
+++ b/.github/prompts/gen_file_meta.md.template
@@ -0,0 +1,36 @@
+这里是跨性别中文数字档案馆,我们需要你帮忙分类每个相关的文本文件,
+用中文撰写对应的详细的描述信息和摘要、元数据和标签,并且记录下该资料可能的时间。
+
+本仓库是伪娘 TS 变身与跨性别相关漫画的档案仓库,我们收集各种二次元性转漫画、
+伪娘或男娘漫画、变身漫画、跨性别漫画等。
+
+性转漫画是指描绘角色性别转换的漫画作品。
+伪娘/男娘漫画通常描绘生理性别为男性但以女性形象出现的角色。
+变身漫画涉及角色外表或性别的改变情节。
+跨性别漫画围绕性别认同与生理性别不一致的人物展开故事。
+
+这些作品可能涉及性别认同、自我探索等主题。
+
+## File Information
+
+- **File Path**: {file_path}
+- **File Content**:
+ ```
+ {file_content}
+ ```
+- **Type**: {type}
+- **Format**: {format}
+
+## Instructions
+
+请为上述文件生成以下元数据:
+
+- **描述**:提供文件内容的摘要和介绍,尽可能详细。
+- **日期**:指定文件的原始创建或发布日期,以 YYYY-MM-DD 格式。月份或日期若不确定可以省略。若完全没有日期信息,请填写“未知”。
+- **作者**:指定文件的主要作者或发布者、发布组织。若完全未知,请填写“未知”。
+- **地区**:指定文件的主要地区,例如中国大陆、香港、台湾、美国等。若完全未知,请填写“未知”。
+- **标签**:列出描述文件内容或主题的相关标签或关键词。
+
+确保元数据准确。描述应为详细、信息丰富的几段话,尽可能详细、具体地讲解文件中的内容,
+适当摘抄文中出现的句子和内容。标签应相关且具体。所有的标签和描述信息均应为中文。如果
+你已知的信息不足以判断对应的标签和描述信息,请填写“未知”,或表明这是某个资料的一部分。
diff --git a/.github/prompts/workspace.md.template b/.github/prompts/workspace.md.template
new file mode 100644
index 0000000..57ba4ed
--- /dev/null
+++ b/.github/prompts/workspace.md.template
@@ -0,0 +1,30 @@
+这里是跨性别中文数字档案馆,我们需要你帮忙分类每个跨性别相关的文本文件,
+我们会给你一些文件的对应信息,以及当前的分类和目录结构。你需要在回答中选择
+一个合适的目录路径来放置它。如果没有合适的目录,输出 "未知"。
+
+我们收录任何与中文跨性别相关的内容,包括但不限于:
+
+- 生命故事与过渡经历
+- 医疗资源与经验分享
+- 法律政策与社会环境记录
+- 数据统计与研究资料
+- 反映生存现状的真实记录
+- 文学艺术与创作表达
+
+以下是对应的一些文件信息:
+
+## File Information
+
+- **File Name**: {file_name}
+- **File Content**:
+ ```
+ {file_content}
+ ```
+
+## Current Directory Structure
+
+{current_dir_structure}
+
+## Instructions
+
+返回需要将这个文件放置的目录路径,如果没有合适的目录,输出 “未知”。
\ No newline at end of file
diff --git a/.github/prompts/workspace_classify.md.template b/.github/prompts/workspace_classify.md.template
new file mode 100644
index 0000000..b7228be
--- /dev/null
+++ b/.github/prompts/workspace_classify.md.template
@@ -0,0 +1,34 @@
+这里是跨性别中文数字档案馆,你是一个志愿者,我们现在从网络上收集到了一些可能和
+跨性别相关的文件,需要你帮忙判断每个文件的主要内容是否和跨性别相关,对于相关程度
+从 1 到 5 进行评分,1 表示完全不相关,5 表示完全相关。同时撰写一些你对於这个文件
+的评价,是否适合收录在档案馆中。
+
+我们会给你一些文件的对应信息,
+我们收录任何与中文跨性别相关的内容,包括但不限于:
+
+- 生命故事与过渡经历
+- 医疗资源与经验分享
+- 法律政策与社会环境记录
+- 数据统计与研究资料
+- 反映生存现状的真实记录
+- 文学艺术与创作表达
+
+我们希望尽可能广泛的收集和保存中文跨性别相关的文件,但如果其中只有一两句
+跨性别/变性手术相关的内容,我们可能不会收录。我们希望文本的主题或至少部分章节段落
+与跨性别/变性手术/多元化的性别认同与性别表达/易性癖和易装癖等相关。
+
+以下是对应的一些文件信息:
+
+## File Information
+
+- **File Name**: {file_name}
+- **Related Snippet**: {related_snippet}
+- **File Content**:
+ ```
+ {file_content}
+ ```
+
+
+## Instructions
+
+返回你对这个文件的评价,是否适合收录在档案馆中,以及相关程度评分。
diff --git a/.github/scripts b/.github/scripts
new file mode 160000
index 0000000..e4a7771
--- /dev/null
+++ b/.github/scripts
@@ -0,0 +1 @@
+Subproject commit e4a77719708a00f57eddc77f44ced0b57c973770
diff --git a/.github/site/hooks/socialmedia.py b/.github/site/hooks/socialmedia.py
new file mode 100644
index 0000000..3bd74fb
--- /dev/null
+++ b/.github/site/hooks/socialmedia.py
@@ -0,0 +1,21 @@
+from textwrap import dedent
+import urllib.parse
+import re
+
+x_intent = "https://x.com/intent/tweet"
+fb_sharer = "https://www.facebook.com/sharer/sharer.php"
+# include = re.compile(r"blog/[1-9].*")
+
+def on_page_markdown(markdown, **kwargs):
+ page = kwargs['page']
+ config = kwargs['config']
+ # if not include.match(page.url):
+ # return markdown
+
+ page_url = config.site_url+page.url
+ page_title = urllib.parse.quote(page.title+'\n')
+
+ return markdown + "\n\n" + dedent(f"""
+ [Share on :simple-x:]({x_intent}?text={page_title}&url={page_url}){{ .md-button }}
+ [Share on :simple-facebook:]({fb_sharer}?u={page_url}){{ .md-button }}
+ """)
diff --git a/.github/site/mkdocs.yml b/.github/site/mkdocs.yml
new file mode 100644
index 0000000..383c70e
--- /dev/null
+++ b/.github/site/mkdocs.yml
@@ -0,0 +1,78 @@
+site_name: 档案template
+repo_url: https://transchinese.org/
+site_url: https://xxx.transchinese.org/
+site_description: '档案馆template'
+site_author: 多元性别中文数字图书馆
+copyright: '多元性别中文数字图书馆 2024'
+theme:
+ name: material
+ custom_dir: overrides
+ features:
+ - search.suggest
+ - search.highlight
+ - search.share
+ # - content.action.edit
+ - navigation.footer
+ - navigation.instant
+ - navigation.instant.progress
+ - navigation.tabs
+ - navigation.tabs.sticky
+ - navigation.expand
+ - navigation.path
+ - navigation.top
+ - navigation.prune
+ - navigation.indexes
+ - navigation.tracking
+ palette:
+ # Palette toggle for automatic mode
+ - media: "(prefers-color-scheme)"
+ toggle:
+ icon: material/brightness-auto
+ name: Switch to light mode
+
+ # Palette toggle for light mode
+ - media: "(prefers-color-scheme: light)"
+ scheme: default
+ toggle:
+ icon: material/brightness-7
+ name: Switch to dark mode
+
+ # Palette toggle for dark mode
+ - media: "(prefers-color-scheme: dark)"
+ scheme: slate
+ toggle:
+ icon: material/brightness-4
+ name: Switch to system preference
+ language: zh
+plugins:
+ - search
+ - social:
+ cards_layout_options:
+ font_family: Noto Sans SC
+ - rss:
+ match_path: ".*"
+ date_from_meta:
+ as_creation: date.created
+ as_update: date.updated
+ - git-authors
+ - git-revision-date-localized:
+ enable_creation_date: true
+extra:
+ analytics:
+ provider: google
+ property: G-NLEYWPXZ47
+ social:
+ - icon: /fontawesome/regular/envelope
+ name: send me an email
+ link: mailto:admin@transchinese.org
+ - icon: fontawesome/brands/x-twitter
+ link: https://x.com/transchineseorg
+ extra:
+ homepage: https://transchinese.org
+hooks:
+ - hooks/socialmedia.py
+markdown_extensions:
+ - attr_list
+ - pymdownx.emoji:
+ emoji_index: !!python/name:material.extensions.emoji.twemoji
+ emoji_generator: !!python/name:material.extensions.emoji.to_svg
diff --git a/.github/site/overrides/partials/comments.html b/.github/site/overrides/partials/comments.html
new file mode 100644
index 0000000..90987b9
--- /dev/null
+++ b/.github/site/overrides/partials/comments.html
@@ -0,0 +1,17 @@
+{% if true %}
+
+{% endif %}
\ No newline at end of file
diff --git a/.github/site/prepare_site.sh b/.github/site/prepare_site.sh
new file mode 100755
index 0000000..3bfac15
--- /dev/null
+++ b/.github/site/prepare_site.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Exit on any error
+set -e
+
+python .github/scripts/others/check_files.py
+
+echo "Files checked and remove large files successfully!"
+
+# Create docs directory if it doesn't exist
+mkdir -p docs
+
+# Copy markdown files to docs directory
+# Enable extended globbing if needed
+shopt -s extglob
+cp -r !(docs) docs/
+rm -f docs/CODE_OF_CONDUCT.md
+rm -f docs/CONTRIBUTING.md
+
+# Copy all files from .github/site to root directory
+cp -r .github/site/* ./
+
+echo "Files copied successfully!"
diff --git a/.github/site/requirements.txt b/.github/site/requirements.txt
new file mode 100644
index 0000000..5b0704a
--- /dev/null
+++ b/.github/site/requirements.txt
@@ -0,0 +1,10 @@
+mkdocs-material
+mkdocs-material[imaging]
+mkdocs-git-authors-plugin
+mkdocs-git-revision-date-localized-plugin
+mkdocs-rss-plugin
+mkdocs-static-i18n[material]
+python-dotenv
+openai
+pdfplumber
+python-docx
diff --git a/.github/templates/README.md.template b/.github/templates/README.md.template
new file mode 100644
index 0000000..4fd4ca5
--- /dev/null
+++ b/.github/templates/README.md.template
@@ -0,0 +1,17 @@
+# mkdocs 中文数字档案馆模板
+
+功能:
+
+- 自动整理文件名
+- 对于 pdf, txt,doc 等文件通过 ai 自动生成摘要分类、下载页面
+- 自动生成目录
+- 自动建立 mkdocs 站点
+- 生成可供检索的目录
+
+## 目录
+
+{{TABLE_OF_CONTENTS}}
+
+## LICENSE
+
+本项目为展示存档与资料库的模板,所有内容均来自互联网,仅供学习和研究使用。版权属于原作者。
diff --git a/.github/templates/action.md.template b/.github/templates/action.md.template
new file mode 100644
index 0000000..0280877
--- /dev/null
+++ b/.github/templates/action.md.template
@@ -0,0 +1,2 @@
+> For more interesting AI experiments and insights, please visit my AI experiment and throughts website and github repo:
+> 了解更多请访问 或者 Github:
diff --git a/.github/templates/additional.md.template b/.github/templates/additional.md.template
new file mode 100644
index 0000000..35ca0a6
--- /dev/null
+++ b/.github/templates/additional.md.template
@@ -0,0 +1,23 @@
+
+
+## 摘要与附加信息
+
+
+{description}
+
+
+附加信息 [Processed Page Metadata]
+
+| Attribute | Value |
+|-----------------|----------------------------------------|
+| Filename | {filename} |
+| Size | {size} bytes |
+| Archived Date | {archived} |
+| Original Link | [{link}]({link}) |
+| Author | {author} |
+| Region | {region} |
+| Date | {date} |
+| Tags | {tags} |
+>
+> 本文由跨性别中文数字档案馆归档整理,仅供浏览。版权归原作者所有。
+>
\ No newline at end of file
diff --git a/.github/templates/page.md.template b/.github/templates/page.md.template
new file mode 100644
index 0000000..99298bf
--- /dev/null
+++ b/.github/templates/page.md.template
@@ -0,0 +1,30 @@
+# {name}
+
+
+Download: [{filename}]({filename})
+
+
+## 摘要
+
+
+{description}
+
+
+
+## 其他信息
+
+| Attribute | Value |
+|-----------------|----------------------------------------|
+| Filename | {filename} |
+| Type | {type} |
+| Format | {format} |
+| Size | {size} bytes |
+| MD5 | {md5} |
+| Archived Date | {archived} |
+| Original Link | [{link}]({link}) |
+| Author | {author} |
+| Region | {region} |
+| Date | {date} |
+| Tags | {tags} |
+
+本文由中文数字档案馆归档整理,仅供存档使用。版权归原作者所有。
diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml
new file mode 100644
index 0000000..7be4d1c
--- /dev/null
+++ b/.github/workflows/blank.yml
@@ -0,0 +1,65 @@
+name: ci
+on:
+ push:
+ branches:
+ - master
+ - main
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ pages: write # Add permission for GitHub Pages
+ id-token: write # Add permission for GitHub Pages deployment
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ recursive: true
+ - name: Configure Git Credentials
+ run: |
+ git config user.name github-actions[bot]
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
+ git submodule update --init --recursive
+ - uses: actions/setup-python@v5
+ with:
+ python-version: 3.x
+ - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
+ - uses: actions/cache@v4
+ with:
+ key: mkdocs-material-${{ env.cache_id }}
+ path: .cache
+ restore-keys: |
+ mkdocs-material-
+ - run: pip install mkdocs-material "mkdocs-material[imaging]" mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin
+ - run: pip install mkdocs-rss-plugin mkdocs-static-i18n[material] python-dotenv openai pdfplumber python-docx
+ - run: pip install -r .github/scripts/requirements.txt
+ - run: sudo apt-get install libcairo2-dev
+ # New steps start here
+ - name: Generate and update TOC, generate and config other things
+ run: |
+ .github/build.sh
+ - name: Commit changes
+ run: |
+ git add .
+ git diff --quiet && git diff --staged --quiet || (git commit -m "Update for modify contents" && git push)
+
+ - name: Prepare site
+ run: .github/site/prepare_site.sh
+
+ - name: Create docs directory
+ run: |
+ mkdir -p site
+ cp -r .github/*.yml ./
+
+ - run: mkdocs gh-deploy --force
+
+ # - name: Run publish script
+ # env:
+ # PUBLISHER_API_KEY: ${{ secrets.PUBLISHER_API_KEY }}
+ # PUBLISH_AS_DRAFT: 'true' # Or 'false' if you want to publish directly
+ # run: |
+ # python .github/manage/publish.py
+
+
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7dfa98e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,23 @@
+/docs/
+/.cache/
+/mkdocs.yml
+/hooks/
+/overrides/
+__pycache__/
+.env*
+cleanup.py
+old_workspace*/
+venv
+my-api/
+unrelated_workspace*
+res.html
+output.md
+res-full.html
+original_clean.html
+original.html
+repeated*/
+res.md
+res.txt
+/workspace_news*/
+/requirements.txt
+/prepare_site.sh
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..7deb6d0
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule ".github/scripts"]
+ path = .github/scripts
+ url = https://github.com/yunwei37/scripts
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..18c9147
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,128 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, religion, or sexual identity
+and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+* Demonstrating empathy and kindness toward other people
+* Being respectful of differing opinions, viewpoints, and experiences
+* Giving and gracefully accepting constructive feedback
+* Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+* Focusing on what is best not just for us as individuals, but for the
+ overall community
+
+Examples of unacceptable behavior include:
+
+* The use of sexualized language or imagery, and sexual attention or
+ advances of any kind
+* Trolling, insulting or derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Community leaders are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+Community leaders have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, and will communicate reasons for moderation
+decisions when appropriate.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+Examples of representing our community include using an official e-mail address,
+posting via an official social media account, or acting as an appointed
+representative at an online or offline event.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the community leaders responsible for enforcement at
+.
+All complaints will be reviewed and investigated promptly and fairly.
+
+All community leaders are obligated to respect the privacy and security of the
+reporter of any incident.
+
+## Enforcement Guidelines
+
+Community leaders will follow these Community Impact Guidelines in determining
+the consequences for any action they deem in violation of this Code of Conduct:
+
+### 1. Correction
+
+**Community Impact**: Use of inappropriate language or other behavior deemed
+unprofessional or unwelcome in the community.
+
+**Consequence**: A private, written warning from community leaders, providing
+clarity around the nature of the violation and an explanation of why the
+behavior was inappropriate. A public apology may be requested.
+
+### 2. Warning
+
+**Community Impact**: A violation through a single incident or series
+of actions.
+
+**Consequence**: A warning with consequences for continued behavior. No
+interaction with the people involved, including unsolicited interaction with
+those enforcing the Code of Conduct, for a specified period of time. This
+includes avoiding interactions in community spaces as well as external channels
+like social media. Violating these terms may lead to a temporary or
+permanent ban.
+
+### 3. Temporary Ban
+
+**Community Impact**: A serious violation of community standards, including
+sustained inappropriate behavior.
+
+**Consequence**: A temporary ban from any sort of interaction or public
+communication with the community for a specified period of time. No public or
+private interaction with the people involved, including unsolicited interaction
+with those enforcing the Code of Conduct, is allowed during this period.
+Violating these terms may lead to a permanent ban.
+
+### 4. Permanent Ban
+
+**Community Impact**: Demonstrating a pattern of violation of community
+standards, including sustained inappropriate behavior, harassment of an
+individual, or aggression toward or disparagement of classes of individuals.
+
+**Consequence**: A permanent ban from any sort of public interaction within
+the community.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.0, available at
+https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
+
+Community Impact Guidelines were inspired by [Mozilla's code of conduct
+enforcement ladder](https://github.com/mozilla/diversity).
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see the FAQ at
+https://www.contributor-covenant.org/faq. Translations are available at
+https://www.contributor-covenant.org/translations.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..3d0e3bc
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,6 @@
+# Contributing
+
+## Web Archive
+
+- https://github.com/iipc/awesome-web-archiving
+- https://ucldigitalpress.co.uk/Book/Article/45/70/0/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e5335e4
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 云微
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f42b5f9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,29 @@
+# mkdocs 中文数字档案馆模板
+
+功能:
+
+- 自动整理文件名
+- 对于 pdf, txt,doc 等文件通过 ai 自动生成摘要分类、下载页面
+- 自动生成目录
+- 自动建立 mkdocs 站点
+- 生成可供检索的目录
+
+## 目录
+
+根目录,按照内容与来源分类
+
+
+总计 1 篇内容
+
+
+### 📁 子目录
+
+- [测试](测试) (1 篇内容)
+
+
+> 本内容为自动生成,请修改 .github/ 目录下的对应脚本或者模板
+
+
+## LICENSE
+
+本项目为展示存档与资料库的模板,所有内容均来自互联网,仅供学习和研究使用。版权属于原作者。
diff --git a/config.yml b/config.yml
new file mode 100644
index 0000000..6fe6073
--- /dev/null
+++ b/config.yml
@@ -0,0 +1,9 @@
+name: ''
+description: 根目录,按照内容与来源分类
+curator: ''
+source: ''
+tags: []
+license: ''
+files: []
+subdirs:
+- 测试
diff --git a/digital.yml b/digital.yml
new file mode 100644
index 0000000..226aa72
--- /dev/null
+++ b/digital.yml
@@ -0,0 +1,9 @@
+independence: []
+ignore:
+ - '.*\.github.*'
+ - '.*\.git.*'
+ - '.*CODE_OF_CONDUCT\.md.*'
+ - '.*LICENSE.*'
+ - 'digital\.yml'
+ - 'page\.yml'
+ - 'search_index\.yml'
diff --git a/search_index.yml b/search_index.yml
new file mode 100644
index 0000000..3cfc4d3
--- /dev/null
+++ b/search_index.yml
@@ -0,0 +1,13 @@
+测试/测试_page.md:
+ type: document
+ format: Plain Text
+ size: 5
+ md5: 418e2c7fb040367d77776c3dbd200164
+ link: null
+ description: '[Unknown description(update needed)]'
+ archived date: '2024-11-15'
+ author: '[Unknown author(update needed)]'
+ date: 未知
+ region: '[Unknown region(update needed)]'
+ tags:
+ - '[Unknown tags(update needed)]'
diff --git "a/\346\265\213\350\257\225/README.md" "b/\346\265\213\350\257\225/README.md"
new file mode 100644
index 0000000..6e21a20
--- /dev/null
+++ "b/\346\265\213\350\257\225/README.md"
@@ -0,0 +1,24 @@
+# 测试
+
+
+
+
+总计 1 篇内容
+
+
+
+### 📄 文档
+
+
+#### 时间未知,按收录顺序排列
+
+
+
+[测试](测试_page.md)查看摘要
+
+[Unknown description(update needed)]
+
+
+
+
+> 本内容为自动生成,请修改 .github/ 目录下的对应脚本或者模板
diff --git "a/\346\265\213\350\257\225/config.yml" "b/\346\265\213\350\257\225/config.yml"
new file mode 100644
index 0000000..21f4a05
--- /dev/null
+++ "b/\346\265\213\350\257\225/config.yml"
@@ -0,0 +1,15 @@
+name: 测试
+description: ''
+curator: ''
+source: ''
+tags: []
+license: ''
+files:
+- name: 测试
+ filename: 测试.txt
+ type: document
+ format: Plain Text
+ size: 5
+ md5: 418e2c7fb040367d77776c3dbd200164
+ page: 测试_page.md
+subdirs: []
diff --git "a/\346\265\213\350\257\225/\346\265\213\350\257\225.txt" "b/\346\265\213\350\257\225/\346\265\213\350\257\225.txt"
new file mode 100644
index 0000000..f3e8683
--- /dev/null
+++ "b/\346\265\213\350\257\225/\346\265\213\350\257\225.txt"
@@ -0,0 +1 @@
+hhhh
diff --git "a/\346\265\213\350\257\225/\346\265\213\350\257\225_page.md" "b/\346\265\213\350\257\225/\346\265\213\350\257\225_page.md"
new file mode 100644
index 0000000..df3c46e
--- /dev/null
+++ "b/\346\265\213\350\257\225/\346\265\213\350\257\225_page.md"
@@ -0,0 +1,38 @@
+# 测试
+
+
+下载: [测试.txt](测试.txt)
+
+
+## 摘要
+
+
+[Unknown description(update needed)]
+
+
+
+## 其他信息 [Processed Page Metadata]
+
+| Attribute | Value |
+|-----------------|----------------------------------------|
+| Filename | 测试.txt |
+| Type | document |
+| Format | Plain Text |
+| Size | 5 bytes |
+| MD5 | 418e2c7fb040367d77776c3dbd200164 |
+| Archived Date | 2024-11-15 |
+| Original Link | [Unknown link(update needed)] |
+| Author | [Unknown author(update needed)] |
+| Region | [Unknown region(update needed)] |
+| Date | [Unknown date(update needed)] |
+| Tags | [Unknown tags(update needed)] |
+
+本文由跨性别中文数字档案馆归档整理,仅供存档使用。版权归原作者所有。
+
+
+## 正文 { data-search-exclude }
+
+
+hhhh
+
+