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

convert Changes manuals book into markdown #3886

Merged
merged 30 commits into from
Feb 12, 2020

Conversation

dimpase
Copy link
Member

@dimpase dimpase commented Feb 6, 2020

Convert Changes manuals book into markdown

Text for release notes

Changed are no longer a Manual's "book", butr just a markdown file

Further details

If necessary, please provide further details here.

Checklist for pull request reviewers

  • proper formatting

If your code contains kernel C code, run clang-format on it; the
simplest way is to use git clang-format, e.g. like this (don't
forget to commit the resulting changes):

git clang-format $(git merge-base HEAD master)
  • usage of relevant labels

    1. either release notes: not needed or release notes: to be added
    2. at least one of the labels bug or enhancement or new feature
    3. for changes meant to be backported to stable-4.X add the backport-to-4.X label
    4. consider adding any of the labels build system, documentation, kernel, library, tests
  • runnable tests

  • lines changed in commits are sufficiently covered by the tests

  • adequate pull request title

  • well formulated text for release notes

  • relevant documentation updates

  • sensible comments in the code

@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

tests are failing, but nothing to do with this PR

@olexandr-konovalov
Copy link
Member

Thanks. Others can see rendered markdown at https://github.com/dimpase/gap/blob/master/doc/Changes.md

Questions so far:

  • filename: Changes.md or CHANGES.md?
  • location: doc or root directory?

Furthermore, I suspect failing tests are because of this PR:

testing: /home/travis/build/gap-system/gap/tst/teststandard/helptools.tst
########> Diff in /home/travis/build/gap-system/gap/tst/teststandard/helptools\
.tst:7
# Input is:
ForAll(FindMultiSpelledHelpEntries(), i -> 
   Length( Set( List( HELP_SEARCH_ALTERNATIVES( i[3] ), 
                      j -> HELP_SEARCH_ALTERNATIVES(j) ) ) ) = 1 );
# Expected output:
true
# But found:
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Filename' on 2 arguments
The 1st argument is 'fail' which might point to an earlier problem
########

since it tried to load the now missing manual book. Other diffs are perhaps of the same reason.

doc/Changes.md Outdated Show resolved Hide resolved
doc/README.md Outdated Show resolved Hide resolved
doc/README.md Outdated Show resolved Hide resolved
doc/make_doc.in Show resolved Hide resolved
Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some remarks. Some of these are optional resp. I don't necessarily expect @dimpase to take care of them, I can also push tweaks to this PR.

Many thanks to @dimpase for working on this!

doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated
and therefore is no longer distributed with
**GAP**.

#### 2.2 **GAP** 4.10.1 (February 2019)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So right now the order of releases in this file is:

  • 4.11.0
  • 4.10.0
  • 4.10.1
  • 4.10.2
  • 4.9.0
  • 4.9.1
  • ...

That's not good. We should permute it.

doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
doc/Changes.md Outdated Show resolved Hide resolved
@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

I'm trying to fix the failing test

@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

what the fresh hell is

$ make doc
doc/make_doc
--------------------
Building GAP manuals
--------------------
----------------------------
Building GAP manual 'ref' at /home/dimpase/work/gap/doc/ref
Run 1 of 2
----------------------------
#I Composing XML document . . .
#I Parsing XML document . . .
#I Checking XML structure . . .
#I Text version (also produces labels for hyperlinks):
#I First run, collecting cross references, index, toc, bib and so on . . .
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Filename' on 2 arguments
The 1st argument is 'fail' which might point to an earlier problem
 at /home/dimpase/work/gap/lib/methsel2.g:249 called from
make: *** [Makefile.rules:796: doc] Error 1

I'm trying to builf this branch using the packages-stable-4.11 tarball, in case
(and after make distclean)

Copy link
Member

@olexandr-konovalov olexandr-konovalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dimpase for cleaning this up - we have a good progress, hope we can merge this tomorrow and do release wrapping on the weekend. Please change the spelling of the filename to CHANGES.md and put it in the root directory, not where it is now,

@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

do you have any idea why I can't build the doc anymore. I tried on two different boxes...

@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

git bisect, here we come :-)

@olexandr-konovalov
Copy link
Member

@dimpase yes: go to doc/ref and do this to get a break loop which you can explore:

$ ../../bin/gap.sh -r -A makedocrel.g 
 ┌───────┐   GAP 4.8.4-7480-g5c72952 of today
 │  GAP  │   https://www.gap-system.org
 └───────┘   Architecture: x86_64-apple-darwin18.7.0-default64-kv8
 Configuration:  gmp 6.1.2, GASMAN
 Loading the library and packages ...
 Packages:   GAPDoc 1.6.3, PrimGrp 3.4.0, SmallGrp 1.4.1, TransGrp 2.0.4
 Try '??help' for help. See also '?copyright', '?cite' and '?authors'
#I Composing XML document . . .
#I Parsing XML document . . .
#I Checking XML structure . . .
#I Text version (also produces labels for hyperlinks):
#I First run, collecting cross references, index, toc, bib and so on . . .
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `Filename' on 2 arguments
The 1st argument is 'fail' which might point to an earlier problem
 at /Users/alexk/GITREPS/dimpase-gap/lib/methsel2.g:249 called from
Filename( dirs, "manual.six" 
 ) at /Users/alexk/GITREPS/dimpase-gap/lib/helpbase.gi:683 called from
HELP_BOOK_INFO( bookname 
 ) at /Users/alexk/GITREPS/dimpase-gap/pkg/GAPDoc-1.6.3/lib/GAPDoc2Text.gi:147\
2 called from
GAPDoc2TextProcs.ResolveExternalRef( r.attributes.BookName, lab, 1 
 ) at /Users/alexk/GITREPS/dimpase-gap/pkg/GAPDoc-1.6.3/lib/GAPDoc2Text.gi:154\
3 called from
GAPDoc2TextProcs.(r.name)( r, str 
 ); at /Users/alexk/GITREPS/dimpase-gap/pkg/GAPDoc-1.6.3/lib/GAPDoc2Text.gi:38\
0 called from
GAPDoc2Text( a, s 
 ); at /Users/alexk/GITREPS/dimpase-gap/pkg/GAPDoc-1.6.3/lib/GAPDoc2Text.gi:49\
3 called from
...  at makedocrel.g:15
type 'quit;' to quit to outer loop
brk> dirs;
fail
brk> bookname;
"changes"
brk> 

I think this is due to all cross-references from manuals to bookname="changes" now being unresolved. Perhaps because of some status of the main manual book, instead of leaving them unresolved, it fails more dramatically.

@olexandr-konovalov
Copy link
Member

@dimpase Hopefully only two places:

$ grep -n -R "\"Changes\"" --include=*.xml doc
doc/ref/preface.xml:23:<Ref BookName="Changes" Label="Preface"/>)</Alt>.
doc/tut/preface.xml:30:<Alt Only="HTML">(see <Ref BookName="Changes" Label="Preface"/>)</Alt>

@dimpase
Copy link
Member Author

dimpase commented Feb 6, 2020

right, just cleaned these up, testing

@olexandr-konovalov
Copy link
Member

OK - it's now available for preview at https://github.com/dimpase/gap/blob/master/CHANGES.md

@fingolfin
Copy link
Member

These are historical texts. I would not change URLs or add "UPDATE 2020" links, unless you are willing to commit to check and update ALL links, and during every release. And frankly I'd still be against it because I wouldn't be sure you'd be able to stick to such a commitment for multiple years (no offense intended, I wouldn't trust that with myself either)

@dimpase
Copy link
Member Author

dimpase commented Feb 9, 2020

let the historians of maths software care about broken URLs - and before this PR they were present too, so that's not a regression to keep it this way.

@olexandr-konovalov
Copy link
Member

For historians of math software https://archiveprogram.github.com/ says that GAP will go to Svalbard: "The 02/02/2020 snapshot archived in the GitHub Arctic Code Vault will sweep up every active public GitHub repository, in addition to significant dormant repos. The snapshot will include every repo with any commits between the announcement at GitHub Universe on November 13th and 02/02/2020, every repo with at least 1 star and any commits from the year before the snapshot (02/03/2019 - 02/02/2020), and every repo with at least 250 stars."

@olexandr-konovalov
Copy link
Member

@dimpase if you could address my remarks about the number of manual books and missing mentions of the HPC-GAP manual, perhaps this will be ready for merging...

@dimpase
Copy link
Member Author

dimpase commented Feb 10, 2020

@alex-konovalov I adjusted the number of books as Changes stopped being one. And adding HPC-GAP as a "new" book probably needs another PR - is there a consensus that it's mature and useful enough on its own to be promoted to this level?

@olexandr-konovalov
Copy link
Member

@dimpase That book is "official" in a sense that it's linked from https://www.gap-system.org/Doc/manuals.html

@dimpase
Copy link
Member Author

dimpase commented Feb 11, 2020

@alex-konovalov OK, done

doc/tut/preface.xml Outdated Show resolved Hide resolved
doc/ref/preface.xml Outdated Show resolved Hide resolved
Copy link
Member

@olexandr-konovalov olexandr-konovalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - left just one comment about README.md. @fingolfin are you happy to merge?

doc/README.md Outdated
respectively. Some documentation is also stored in the library files to be kept
close to the code it describes. It is included in the manual using the mechanism
documented [here](https://www.gap-system.org/Manuals/pkg/GAPDoc-1.5.1/doc/chap4.html).
documented [here](https://www.gap-system.org/Manuals/pkg/GAPDoc-1.6.2/doc/chap4.html).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be done separately, but why not now?

@dimpase
Copy link
Member Author

dimpase commented Feb 12, 2020

@alex-konovalov : this has been fixed already:

bf1c07185c (Max Horn            2020-02-06 18:23:34 +0100 12) documented [here](https://www.gap-system.org/Manuals/pkg/GAPDoc-1.6.2/doc/chap4.html).

cf. https://github.com/dimpase/gap/blob/master/doc/README.md

@olexandr-konovalov
Copy link
Member

olexandr-konovalov commented Feb 12, 2020

@dimpase sorry was unclear: the suggestion was not to update GAPDoc version number in the URL, but replace by http://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc/doc/chap4.html which does not depend on the version number.

https://github.com/dimpase/gap/blob/master/doc/README.md has two hyperlinks for GAPDoc, one to GAP website, one to its Aachen homepage.

@dimpase
Copy link
Member Author

dimpase commented Feb 12, 2020

done by dimpase@d865442

@olexandr-konovalov
Copy link
Member

Thanks @dimpase - hope that was last change before merging this.

Copy link
Member

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just pushed a few more very minor changes, and am happy with the result now. Lets "squash & merge"?

@fingolfin
Copy link
Member

Also, many thanks to @dimpase for working on this!

@olexandr-konovalov olexandr-konovalov merged commit 4b2185c into gap-system:master Feb 12, 2020
olexandr-konovalov pushed a commit that referenced this pull request Feb 12, 2020
Squash and merge PR #3886:
- convert Changes manual into a single markdown file
- add GAP 4.11 release notes
Co-authored by Dima Pasechnik and Max Horn
@olexandr-konovalov
Copy link
Member

olexandr-konovalov commented Feb 12, 2020

Backported to stable-4.11 in c6e2bac

@olexandr-konovalov
Copy link
Member

Looking at release wrapping scripts, I see this in make manuals while tut and ref books are built:

#W WARNING: non resolved reference: rec(
  BookName := "hpc",
  Label := "Tasks" )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-4.11-DONE release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: documentation Issues and PRs related to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants