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

PaperMemory's documentation with Material for Mkdocs #186

Merged
merged 46 commits into from
Nov 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
4182976
📝 (docs): V0 documentation with MKDocs
vict0rsch Nov 14, 2023
8a098e4
build docs
vict0rsch Nov 14, 2023
5affaca
💚 (docs): Setup CI build
vict0rsch Nov 14, 2023
93adf78
📝 (docs): State WIP
vict0rsch Nov 14, 2023
ef31bd9
💚 (docs): Fix material installation
vict0rsch Nov 14, 2023
80c661c
💡 (docs): Add install / launch comments in `mkdocs.yaml`
vict0rsch Nov 15, 2023
13ad6c1
🚧 (docs): Towards a home page
vict0rsch Nov 15, 2023
60c2901
🚧 (docs): Working on docs: better homepage and getting started done
vict0rsch Nov 16, 2023
20fc069
🐛 (docs): Update links to `.md`
vict0rsch Nov 16, 2023
8963152
💩 (docs): Reproduce error
vict0rsch Nov 16, 2023
7a061ed
💩 (docs): No info for deployment
vict0rsch Nov 16, 2023
85c8ce1
🚧 (docs): Bring back assets
vict0rsch Nov 16, 2023
435177a
🚧 (docs): Use home template
vict0rsch Nov 16, 2023
ea1fce1
🚧 (docs): Use home template (missing file)
vict0rsch Nov 16, 2023
50012ae
🚧 (docs): Bolt icon
vict0rsch Nov 16, 2023
f7e0872
🚧 (docs): Bolt triggers issue + bring back extra css
vict0rsch Nov 16, 2023
89a943d
💄 (docs): Improve displays & buttons
vict0rsch Nov 16, 2023
9ff7df3
🐛 (parsers): Fix NeurIPS parsing for `Paper-Conference` url pattern
vict0rsch Nov 17, 2023
49600cf
⚡️ (parsers): Ignore last `#` in `urlToWebsiteId`
vict0rsch Nov 20, 2023
c64afaf
🐛 (memory): Don't add `pdf` field to BibTex if `website` paper
vict0rsch Nov 20, 2023
2880611
📦️ (build): Build
vict0rsch Nov 20, 2023
a6e3ede
🐛 (bibmatcher): Fix dark mode hover color
vict0rsch Nov 20, 2023
af4e285
🍱 (docs): Add assets
vict0rsch Nov 20, 2023
f92c6ca
🔧 (docs): Sort `mkdocs.yaml` entries and add plugins
vict0rsch Nov 20, 2023
93093ff
💄 (docs): Update home gif
vict0rsch Nov 20, 2023
0db7fba
💄 (docs): Alternate Getting Started images left/right
vict0rsch Nov 20, 2023
90e4f98
📝 (docs): Add features
vict0rsch Nov 20, 2023
462b8da
📝 (docs): Keyboard config / nav
vict0rsch Nov 20, 2023
8bc6f53
📝 (docs): Improve faq (custom PDFs and memory exports)
vict0rsch Nov 20, 2023
43f8614
🚧 (readme): Prune readme from contents in the docs
vict0rsch Nov 20, 2023
99b6950
🚧 (docs): Add stars & features to about
vict0rsch Nov 20, 2023
4bb1e3c
⚰️ (options): Movfe local file storage desc to docs
vict0rsch Nov 20, 2023
fc927f2
💄 (docs): Update css with images widths
vict0rsch Nov 20, 2023
7566625
🍱 (docs): Add svgs for menu description
vict0rsch Nov 20, 2023
9316c1d
📝 (docs): Add code copy button feature
vict0rsch Nov 20, 2023
0c39a3c
📝 (docs): Fill `about.md`
vict0rsch Nov 20, 2023
1cc3269
📝 (docs): Finish configuration
vict0rsch Nov 20, 2023
4452b17
📝 (docs): Update links
vict0rsch Nov 20, 2023
20b286a
♿️ (popup): Simplify PaperMemoryStore config description
vict0rsch Nov 20, 2023
eb9ea8d
🚀 (docs): Update `site_url` to `papermemory.org`
vict0rsch Nov 20, 2023
ae006bc
🔍️ (docs): Improve social cards
vict0rsch Nov 20, 2023
54d461a
💄 (docs): Update site logo
vict0rsch Nov 20, 2023
ab4fdaa
🚀 (docs): Add `CNAME`
vict0rsch Nov 20, 2023
757314e
🔍️ (docs): Update title/description
vict0rsch Nov 20, 2023
0e4d432
Merge branch 'master' into mkdocs
vict0rsch Nov 20, 2023
2c5ac7d
📦️ (build): Build js
vict0rsch Nov 20, 2023
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
Prev Previous commit
Next Next commit
⚡️ (parsers): Ignore last # in urlToWebsiteId
vict0rsch committed Nov 20, 2023
commit 49600cf0e526e62b2b62fb9790444f76d3161d21
11 changes: 8 additions & 3 deletions src/shared/js/utils/functions.js
Original file line number Diff line number Diff line change
@@ -790,11 +790,16 @@ const noParamUrl = (url) => {
return url.split("?")[0].split("#")[0];
};

const urlToWebsiteId = (url) =>
miniHash(
// noParamUrl(url)
const urlToWebsiteId = (url) => {
const last = url.split("/").last();
if (last.includes("#")) {
const n = url.split("#").length - 1;
url = url.split("#").slice(0, n).join("#");
}
return miniHash(
url.replace("https://", "").replace("http://", "").replace("www.", "")
);
};

const silentPromiseTimeout = (prom, time = 5000) => {
// https://advancedweb.hu/how-to-add-timeout-to-a-promise-in-javascript/