update doc structure

This commit is contained in:
2026-09-24 13:54:28 +08:00
parent 0d42dc5acc
commit 685b4135df
93 changed files with 190 additions and 12735 deletions
+7
View File
@@ -32,6 +32,13 @@ lock = {'format': 1, 'version': '0.1.0', 'void_commit': 'a' * 40, 'source_epoch'
snapshot = work / 'snapshot'
(snapshot / 'project').mkdir(parents=True)
(snapshot / 'project/source.txt').write_bytes(b'bounded input fixture\n')
# Freeze the real manual as ordinary files, never a pointer to this checkout's
# Git metadata. Archive round-trip and lock checks below cover these files too.
assert 'fds-os.wiki' in frozen.OWNED
frozen.copy(project / 'fds-os.wiki', snapshot / 'project/fds-os.wiki')
assert not (snapshot / 'project/fds-os.wiki/.git').exists()
for source in (project / 'fds-os.wiki').glob('*.md'):
assert (snapshot / 'project/fds-os.wiki' / source.name).read_bytes() == source.read_bytes()
(snapshot / 'temporary').mkdir()
(snapshot / 'temporary').chmod(0o1777)
(snapshot / 'project/executable').write_bytes(b'archive mode fixture\n')