Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create/update doc/ref/user_pref_list.xml automatically #5681

Merged
merged 2 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ doc/*/*.tex
/doc/*/*.out
doc/gapmacrodoc.example-1.tst
doc/gapmacrodoc.idx
doc/ref/user_pref_list.xml

# GAP packages
/bootstrap-pkg-full.tar.gz
Expand Down
1 change: 1 addition & 0 deletions doc/make_doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ echo "--------------------"
base:="@abs_top_srcdir@";;
books:=["ref", "tut", "hpc", "dev"];;
latexOpts := rec(Maintitlesize := "\\\\fontsize{36}{38}\\\\selectfont");;
UpdateXMLForUserPreferences();
for run in [1,2] do
for book in books do
path := Concatenation(base, "/doc/", book);
Expand Down
330 changes: 0 additions & 330 deletions doc/ref/user_pref_list.xml

This file was deleted.

18 changes: 18 additions & 0 deletions lib/userpref.g
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,24 @@
end );


#############################################################################
##
#F UpdateXMLForUserPreferences()
##
## Update the file <F>doc/ref/user_pref_list.xml</F> if necessary.
##
BindGlobal( "UpdateXMLForUserPreferences", function()
local file, old, new;

file:= Filename(DirectoriesLibrary("doc")[1], "ref/user_pref_list.xml");
old:= StringFile(file);
new:= XMLForUserPreferences("GAP");
if old <> new then
FileString(file, new);
fi;

Check warning on line 839 in lib/userpref.g

View check run for this annotation

Codecov / codecov/patch

lib/userpref.g#L834-L839

Added lines #L834 - L839 were not covered by tests
end );


#############################################################################
##
#F WriteGapIniFile( [<dir>, ][true] )
Expand Down
1 change: 1 addition & 0 deletions tst/extractmanuals.g
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pathtodoc := DirectoriesLibrary("doc/ref");
Read(Filename(pathtodoc, "makedocreldata.g"));
GAPInfo.ManualDataRef.pathtodoc := pathtodoc;
GAPInfo.ManualDataRef.pathtoroot := DirectoriesLibrary("");
UpdateXMLForUserPreferences();
WriteExamplesTst( testdir, GAPInfo.ManualDataRef );

#
Expand Down
Loading
Loading