From 795a794430e6f3c6f06d6169b2c0b7c1a016e04b Mon Sep 17 00:00:00 2001 From: Francesco Mecca Date: Thu, 11 May 2023 11:54:03 +0200 Subject: [PATCH] parser --- gamewiki/borderlands2.org | 2 +- gamewiki/cemu.org | 1 + gamewiki/makefile | 17 +++++++++++++++++ gamewiki/mariokart8.org | 1 + gamewiki/meta/guides.org | 1 + gamewiki/meta/nintendo.org | 2 ++ gamewiki/parser.py | 3 +++ gamewiki/wiiu.org | 2 +- 8 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 gamewiki/makefile diff --git a/gamewiki/borderlands2.org b/gamewiki/borderlands2.org index 8af481b..767c81d 100644 --- a/gamewiki/borderlands2.org +++ b/gamewiki/borderlands2.org @@ -1,7 +1,7 @@ #+AUTHOR: bparodi #+TITLE: Borderlands 2 #+FILETAGS: :games:pc:borderlands: -# #+options: html-style:nil html-scripts:nil date:nil created:nil +#+OPTIONS: html-style:nil html-scripts:nil date:nil created:nil # #+HTML_HEAD: * Borderlands2 per lezzi diff --git a/gamewiki/cemu.org b/gamewiki/cemu.org index 5468c31..b7751fb 100644 --- a/gamewiki/cemu.org +++ b/gamewiki/cemu.org @@ -1,4 +1,5 @@ #+TITLE: CEMU #+FILETAGS: :emulation: #+AUTHOR: bparodi +#+options: html-style:nil html-scripts:nil date:nil created:nil Latest used version: [[./files/cemu-2.0-36-windows-x64.zip][Cemu 2.0-36 (Experimental) Pre-release]] diff --git a/gamewiki/makefile b/gamewiki/makefile new file mode 100644 index 0000000..46aa253 --- /dev/null +++ b/gamewiki/makefile @@ -0,0 +1,17 @@ +ORG_FILES := $(shell find . -type f -name '*.org' ) +HTML_FILES := $(patsubst %.org,temp/%.html,$(ORG_FILES)) + +.PHONY: all clean + +all: $(HTML_FILES) + +temp/%.html: %.org | temp + emacs $< --batch -f org-html-export-to-html --kill + mv $(basename $<).html $@ + +temp: + mkdir temp + mkdir temp/meta + +clean: + rm -rf temp diff --git a/gamewiki/mariokart8.org b/gamewiki/mariokart8.org index 6f78f95..dda6ffc 100644 --- a/gamewiki/mariokart8.org +++ b/gamewiki/mariokart8.org @@ -1,5 +1,6 @@ #+TITLE: Mario Kart 8 #+FILETAGS: :games:wiiu:mario: +#+options: html-style:nil html-scripts:nil date:nil created:nil #+AUTHOR: bparodi Works with default configurations provided that you have support for vulkan async compile. diff --git a/gamewiki/meta/guides.org b/gamewiki/meta/guides.org index adbc3a7..4466e81 100644 --- a/gamewiki/meta/guides.org +++ b/gamewiki/meta/guides.org @@ -1,3 +1,4 @@ #+TITLE: Guides #+FILETAGS: :guides: ** Pages in this category +- [[../wiiu.org][Nintendo Wii U]] diff --git a/gamewiki/meta/nintendo.org b/gamewiki/meta/nintendo.org index be539ae..a81dc07 100644 --- a/gamewiki/meta/nintendo.org +++ b/gamewiki/meta/nintendo.org @@ -1,5 +1,7 @@ #+TITLE: Nintendo #+FILETAGS: :nintendo: +#+OPTIONS: creator:nil +#+OPTIONS: date:nil ** Pages in this category - [[../wiiu.org][Nintendo Wii U]] - [[../nus.org][NUS Downloader]] diff --git a/gamewiki/parser.py b/gamewiki/parser.py index a506c8e..a0ae2c9 100644 --- a/gamewiki/parser.py +++ b/gamewiki/parser.py @@ -125,3 +125,6 @@ if __name__ == '__main__': if related: newcontent = f.enrich(map(lambda f: byfilename[f], related)) writetodisk(f, newcontent) + + unused = tags.keys() - meta + print(f'Finished exporting. List of unused tags: {unused}') diff --git a/gamewiki/wiiu.org b/gamewiki/wiiu.org index 7811437..f339567 100644 --- a/gamewiki/wiiu.org +++ b/gamewiki/wiiu.org @@ -1,5 +1,5 @@ #+TITLE: Nintendo Wii U -#+FILETAGS: :guide:emulation:nintendo: +#+FILETAGS: :guides:emulation:nintendo: #+AUTHOR: bparodi We use [[./cemu.org][CEMU]] to emulate the Wii U platform and play the games on the pc. The biggest difference compared to other emulators is the workflow to play a