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

sync offline branch search.js (kanji info) from gh-pages #10

Closed
sschmidTU opened this issue Nov 9, 2020 · 1 comment
Closed

sync offline branch search.js (kanji info) from gh-pages #10

sschmidTU opened this issue Nov 9, 2020 · 1 comment
Assignees
Labels
offline wtk-search offline (branch/version) related

Comments

@sschmidTU
Copy link
Owner

sschmidTU commented Nov 9, 2020

the offline branch is often behind, because in the gh-pages branch, the .md files are edited,
which in the offline branch are inlined as json in search.js.

you can take the json data from visiting the online version (gh-pages), finding the search.js in the sources, and applying a lot of regexes to make the formatting the same as the old search.js, and the diff clean.

I'll try to list the exact regex replacements next time i sync the data with gh-pages.
(need to use some groups and dollars, like replacing ( )( keywordsWK:.*$) with $2 (second group),
or ^.*elementsWK: "",.*\n with nothing, for example)

@sschmidTU sschmidTU self-assigned this Nov 9, 2020
@sschmidTU sschmidTU added the offline wtk-search offline (branch/version) related label Nov 9, 2020
sschmidTU pushed a commit that referenced this issue Nov 9, 2020
sync with gh-pages 1.2.0.4

this is a big boy merge,
adding the elements from ~800
extra kanji annotated by elements
in the gh-pages branch.

this json was taken from visiting the webpage, finding the search.js in the sources, and applying a lot of regexes
to make the formatting the same as the old search.js, and the diff clean.
@sschmidTU
Copy link
Owner Author

offline branch kanji info is now on the state of gh-pages (online) v1.2.0.4.

Can be reopened for the next syncs.

sschmidTU pushed a commit that referenced this issue Nov 9, 2020
sync with gh-pages 1.2.0.4

this is a big boy merge,
adding the elements from ~800
extra kanji annotated by elements
in the gh-pages branch.

this json was taken from visiting the webpage, finding the search.js in the sources, and applying a lot of regexes
to make the formatting the same as the old search.js, and the diff clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
offline wtk-search offline (branch/version) related
Projects
None yet
Development

No branches or pull requests

1 participant