Hi Martin,
I tried to execute the commands you sent (thanks for that!), but it didn't
work. Are you on macos? If so, macos' find has a different, non-posix, syntax I
believe (had a similar issue with a co-worker some years ago and learned that,
I think BSD introduced the changes).
Anyhow, I took the longer way, and edited each file that had http-https changes
manually by looking at the GitHub UI to see what files had changes.
Also moved books/ to the top level of the Hugo site (won't be deployed, but
it's available to devs as source to produce the new book I think?).
Same with templates. I've moved the files from templates/ and content/templates
both to under /templates/. It won't be in the SIS website, but devs can be use
it.
Let me know if it's looking better now, and if there are any changes pending.
I've squashed the commits and did a quick test with Hugo again locally, and
found no issues.
Cheers
Bruno
On Wednesday, 12 May 2021, 12:53:19 am NZST, Martin Desruisseaux
<[email protected]> wrote:
Le 11/05/2021 à 13:36, Bruno P. Kinoshita a écrit :
> Out of curiosity, how long did `git svn clone` take? Just to compare
> with svn2git :)
>
I do not really know. It finished somewhere in the middle of the night.
But it has been many hours.
> I've created a PR here with the new site:
> https://github.com/apache/sis-site/pull/1
> Take a look to see if I forgot anything, or if something changed after
> the porting to Hugo.
>
Thanks! The main thing is the missing "book/*.html" files. Would it be
possible to add them, then squash the commits? With a squash, the pull
request will be automatically updated with a new "diff" page saying that
those files have been moved rather than deleted. The main question is
where to put them… Not in the "static" directory I think, since they are
source files used for building the static HTML file.
There is also many URL that changed. I think it is because I did an
update of those URLs after the migration to Hugo. Would it be possible
to do the following? Repeat the steps given in my previous email, but
before to do "git commit", execute the following commands:
find -name "static/*.html" -exec git reset '{}' \;
find -name "book/*" -exec git reset '{}' \;
git checkout .
It should cancel all changes in HTML files, on the assumption that
migration to Hugo should not change those files. Then the following
command would help to see if there is any remaining URL changes:
git diff --staged | grep "http"
Thanks!
Martin