-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
docs: show-updated-docs #5516
docs: show-updated-docs #5516
Conversation
showing the updated docs with a circle next to the title, in this commit I added the circles.
👷 Deploy request for qwik-insights pending review.Visit the deploys page to approve it
|
@@ -88,7 +96,15 @@ async function updateGithubCommits(filePath: string) { | |||
|
|||
console.log(repoPath, contributors.length); | |||
|
|||
await new Promise((resolve) => setTimeout(resolve, 1000)); | |||
if (response.headers.get('x-ratelimit-remaining') === '0') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this condition is changing the current behaviour.
can you clarify why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mpeg can help us here as he implemented this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey, so the default behaviour is to wait 1s between calls to the github API, this change actually waits for however long the API rate limit header asks you to wait – it's really not great either way because the default rate limits are so low that without an API key you hit the hourly limit of calls and have to wait for a long time, but it's better than it failing outright which is the current behaviour
probably a good improvement for this (and the pnpm contributors
script) would be to pass in an optional env variable with a GH api key so that it can run a lot faster if present
> | ||
{item.text} | ||
{markdownItems[item.href!]?.frontmatter?.updated_at ? ( | ||
new Date(markdownItems[item.href!]?.frontmatter?.updated_at!).getTime() + | ||
5 * 24 * 60 * 60 * 1000 > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create a constant for this value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made some changes, I think it's better now.
Love the direction. |
* Update index.mdx Correct mistake. The original was: Both pages are created by adding ... Changed to: Pages are created by adding ... * trigger GH checks --------- Co-authored-by: gioboa <[email protected]>
* fix(cli) parseTemplatePath doesn't work in windows * refactor use path.sep --------- Co-authored-by: Yale <[email protected]>
* fix(qwik): Incorrect module reference in inlinedQrl Fix #5368 * fixup! fix(qwik): Incorrect module reference in inlinedQrl
* docs: Alex Russell Approved Alex Russell Approved JavaScript framework * docs(faq): wording
fix(qwik-city): parseBody should not clone requests
…tch> (#5485) docs(module-prefetching): make the distinction between module-prefetching and <Link prefetch>
… qwik nodes (#5497) Enable the prefixIds SVGO plugin by default, while still allowing customization. This is a follow up on #5407. Here's a discussion on why it makes sense when optimizing SVG files for the web: svg/svgo#674.
fix: polyfill only if needed
* Extend index.mdx to include QwikCityMockProvider * docs: add links between vitest integration page and qwikcity api page
* docs(glob-import): add documentation for import.meta.glob * docs(glob-imports): add Glob Import link to /cookbook/index.mdx * docs(glob-import): refactor type any to Record<string, any> * docs: add Record<string, any> to mdx as well
* fix: polyfill also when shimmed * chore: add comment to explain polyfill * chore: Giorgio's feedback
put the mardown update in a const which made the code cleaner and better to understand
packages/docs/tsconfig.json
Outdated
@@ -1,8 +1,8 @@ | |||
{ | |||
"compilerOptions": { | |||
"incremental": true, | |||
"target": "ES2020", | |||
"module": "ES2020", | |||
"target": "ES2022", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes needed?
tsconfig.json
Outdated
@@ -1,8 +1,8 @@ | |||
{ | |||
"compilerOptions": { | |||
"incremental": true, | |||
"target": "ES2020", | |||
"module": "ES2020", | |||
"target": "ES2022", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why ware these changes needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the previous approach, I used a top level await which was required this to be 2022 or other options suggested.
but now since we are using a different approach, I reverted these to what they were. thanks!
I have a fixed-up PR #5536 (for some reason, I can't push to this branch) Can you make this branch green based on the other one? |
Yes! |
Ready! |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@builder.io/qwik](https://qwik.builder.io/) ([source](https://togithub.com/BuilderIO/qwik/tree/HEAD/packages/qwik)) | [`1.3.0` -> `1.3.1`](https://renovatebot.com/diffs/npm/@builder.io%2fqwik/1.3.0/1.3.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@builder.io%2fqwik/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@builder.io%2fqwik/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@builder.io%2fqwik/1.3.0/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@builder.io%2fqwik/1.3.0/1.3.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>BuilderIO/qwik (@​builder.io/qwik)</summary> ### [`v1.3.1`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.3.1) [Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.3.0...v1.3.1) ##### What's Changed - fix(playground): block 1.3.0 by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5538](https://togithub.com/BuilderIO/qwik/pull/5538) - docs: show-updated-docs by [@​AmirSa12](https://togithub.com/AmirSa12) in [https://github.com/BuilderIO/qwik/pull/5516](https://togithub.com/BuilderIO/qwik/pull/5516) - docs: (add list item) Add qwik-d3 to the library list by [@​gilf](https://togithub.com/gilf) in [https://github.com/BuilderIO/qwik/pull/5544](https://togithub.com/BuilderIO/qwik/pull/5544) - docs: add qwik-storefront-ui library by [@​gioboa](https://togithub.com/gioboa) in [https://github.com/BuilderIO/qwik/pull/5548](https://togithub.com/BuilderIO/qwik/pull/5548) - docs: change image url by [@​gioboa](https://togithub.com/gioboa) in [https://github.com/BuilderIO/qwik/pull/5549](https://togithub.com/BuilderIO/qwik/pull/5549) - chore(starters): add type module to package.json by [@​nelsonprsousa](https://togithub.com/nelsonprsousa) in [https://github.com/BuilderIO/qwik/pull/5553](https://togithub.com/BuilderIO/qwik/pull/5553) - refactor(types): optimize, QRL props, PropsOf, track(Signal) type, ... by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5550](https://togithub.com/BuilderIO/qwik/pull/5550) - fix(repl): don't propose broken versions by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5560](https://togithub.com/BuilderIO/qwik/pull/5560) - fix: remove dependency on vitefu causing playground failures by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5562](https://togithub.com/BuilderIO/qwik/pull/5562) - fix: better deprecation notice on qwikevents by [@​wmertens](https://togithub.com/wmertens) in [https://github.com/BuilderIO/qwik/pull/5568](https://togithub.com/BuilderIO/qwik/pull/5568) - fix: use existing local .eslintrc configuration by [@​gioboa](https://togithub.com/gioboa) in [https://github.com/BuilderIO/qwik/pull/5563](https://togithub.com/BuilderIO/qwik/pull/5563) - test(lint): break up lint tests into separate files by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5572](https://togithub.com/BuilderIO/qwik/pull/5572) - refactor(qwik): add `__qwik_serializable__` brand to types by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5576](https://togithub.com/BuilderIO/qwik/pull/5576) - fix(lint): allow event methods to capture `PropFunction` by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5578](https://togithub.com/BuilderIO/qwik/pull/5578) - chore(eslint-plugin-qwik): add 'qwik/no-use-visible-task': 'warn' to strict by [@​maiieul](https://togithub.com/maiieul) in [https://github.com/BuilderIO/qwik/pull/5575](https://togithub.com/BuilderIO/qwik/pull/5575) - fix: `server$` and AbortSignal types by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5581](https://togithub.com/BuilderIO/qwik/pull/5581) - fix(qwik): restore bivarience hack by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5587](https://togithub.com/BuilderIO/qwik/pull/5587) - chore(insights): correct failing build by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5586](https://togithub.com/BuilderIO/qwik/pull/5586) - docs(usevisibletask$): reduce eslint noUseVisibleTask message + transfer to docs by [@​maiieul](https://togithub.com/maiieul) in [https://github.com/BuilderIO/qwik/pull/5583](https://togithub.com/BuilderIO/qwik/pull/5583) - docs: remove console warning by [@​gioboa](https://togithub.com/gioboa) in [https://github.com/BuilderIO/qwik/pull/5590](https://togithub.com/BuilderIO/qwik/pull/5590) - fix(qwik-city): Scroll Position doesn't reset to 0 when it was triggered by an Action. by [@​iamriajul](https://togithub.com/iamriajul) in [https://github.com/BuilderIO/qwik/pull/5588](https://togithub.com/BuilderIO/qwik/pull/5588) - feat(qwik): Experimental support for synchronous QRL `sync$()`. by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5545](https://togithub.com/BuilderIO/qwik/pull/5545) - chore: 1.3.1 by [@​mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5595](https://togithub.com/BuilderIO/qwik/pull/5595) ##### New Contributors - [@​AmirSa12](https://togithub.com/AmirSa12) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5516](https://togithub.com/BuilderIO/qwik/pull/5516) - [@​iamriajul](https://togithub.com/iamriajul) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5588](https://togithub.com/BuilderIO/qwik/pull/5588) **Full Changelog**: QwikDev/qwik@v1.3.0...v1.3.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 9pm on sunday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ascorbic/unpic-img). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy45My4xIiwidXBkYXRlZEluVmVyIjoiMzcuOTMuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Overview
What is it?
Description
This pull request introduces a valuable enhancement to Qwik's documentation website by implementing a "Recently Updated Docs" feature. This feature aims to improve user experience and keep users informed about the latest changes to the documentation.
Use cases and why
Checklist: