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
+6 -1
View File
@@ -28,7 +28,12 @@ for tool in ['fds-cartridge','fds-emulator']:
output=subprocess.check_output([str(root/'usr/bin'/tool),'--version'],text=True).strip()
assert output==f'{tool} {version}',output
subprocess.run([str(root/'usr/bin'/tool),'--help'],check=True,stdout=subprocess.DEVNULL)
assert (root/'usr/share/doc/fds-tools/docs/workstation.md').is_file()
assert (root/'usr/share/doc/fds-tools/fds-os.wiki/Workstation.md').is_file()
manual = root/'usr/share/doc/fds-tools/fds-os.wiki'
for source in (project/'fds-os.wiki').iterdir():
if source.suffix in ('.md', '.png'):
assert (manual/source.name).read_bytes() == source.read_bytes(), source
assert not (manual/'.git').exists()
assert (root/'usr/share/licenses/fds-tools/RUST-NOTICES.txt').stat().st_size>0
installed=subprocess.check_output(['pacman','--config',str(config),'--root',str(root),'--dbpath',str(root/'var/lib/pacman'),'-Q','fds-tools'],text=True).strip()
assert installed==f'fds-tools {version}-1',installed