Skip to content

Commit

Permalink
Docgen tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Sep 5, 2023
1 parent f527efd commit 6e3d6a0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
31 changes: 21 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
*.exe
*.bat
*.trc
*.lps
*.DS_Store
backup/
build/
/*.res
/build/
/Includes/
/Plugins/
/Scripts/
/Data/
/Fonts/
/Screenshots
/Simba*
/libssl*
/libcrypto*
/DocGen/input
/DocGen/output
/Source/tests/*.exe
/Source/tests/lib
/Source/tests/backup
/Screenshots
/Source/codetools/tools/lib
*.exe

/DocGen/source/api*
!/DocGen/source/api/index.rst

/DocGen/build/_static/*
!/DocGen/build/_static/custom.css

/DocGen/build/search.html
/DocGen/build/searchindex.js
/DocGen/build/.doctrees
/DocGen/build/_sources
/DocGen/build/api
/DocGen/build/tutorials
/DocGen/build/.buildinfo
/DocGen/build/.nojekyll
/DocGen/build/genindex.html
/DocGen/build/index.html
/DocGen/build/objects.inv
File renamed without changes.
8 changes: 1 addition & 7 deletions DocGen/docgen.simba
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ end;
procedure MakeInlineCode(var Str: String);
var
Start, Stop: Integer;
Block: String;
begin
Start := 1;
while ((Start := Str.IndexOf('`', Start)) > 0) do
Expand Down Expand Up @@ -172,7 +171,7 @@ var
FileName: String;
begin
for FileName in DirList('DocGen/source/api/') do
if (not (PathExtractName(FileName) in ['.gitkeep', 'index.rst'])) then
if (not (PathExtractName(FileName) in ['index.rst'])) then
FileDelete(FileName);
end;

Expand Down Expand Up @@ -223,9 +222,6 @@ var
begin
ClearSimbaOutput();

DirCreate('DocGen/build');
DirDelete('DocGen/build', True);

CleanAPI();
BuildAPI();

Expand All @@ -237,6 +233,4 @@ begin

// it looks a lot better like this...
H2ToH3('DocGen/build/api');

CleanAPI();
end.
Empty file removed DocGen/source/api/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion DocGen/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
html_title = 'Simba'
html_favicon = '../images/icon.ico'
html_theme = 'furo'
html_css_files = ['../../source/custom.css'] # relative to `_static` dir
html_css_files = ['custom.css']
extensions = [
'sphinx.ext.githubpages',
'sphinx.ext.mathjax'
Expand Down
Empty file removed DocGen/source/tutorials/.gitkeep
Empty file.

0 comments on commit 6e3d6a0

Please sign in to comment.