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

docs: show-updated-docs #5516

Merged
merged 113 commits into from
Dec 7, 2023
Merged

docs: show-updated-docs #5516

merged 113 commits into from
Dec 7, 2023

Conversation

AmirSa12
Copy link
Contributor

@AmirSa12 AmirSa12 commented Dec 2, 2023

Overview

What is it?

Screenshot 2023-11-24 185744
Screenshot 2023-11-24 185803

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos

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

    1. One use case
    1. Another use case

Checklist:

  • [] My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

mpeg and others added 3 commits October 22, 2023 19:11
showing the updated docs with a circle next to the title, in this commit I added the circles.
Copy link

netlify bot commented Dec 2, 2023

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a229896

@AmirSa12 AmirSa12 changed the title Show recently updated docs on qwik's documentation website feat: show-updated-docs Dec 2, 2023
@@ -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') {
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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 >
Copy link
Member

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?

Copy link
Contributor Author

@AmirSa12 AmirSa12 Dec 4, 2023

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.

@zanettin zanettin added COMP: docs Improvements or additions to documentation WAITING FOR: user Further information is requested from the issue / pr opener labels Dec 3, 2023
@mhevery
Copy link
Contributor

mhevery commented Dec 6, 2023

Love the direction.

gioboa and others added 20 commits December 6, 2023 22:21
* 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
maiieul and others added 15 commits December 6, 2023 22:30
…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.
* 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
@mhevery mhevery mentioned this pull request Dec 6, 2023
7 tasks
@mhevery mhevery changed the title feat: show-updated-docs docs: show-updated-docs Dec 6, 2023
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"incremental": true,
"target": "ES2020",
"module": "ES2020",
"target": "ES2022",
Copy link
Contributor

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",
Copy link
Contributor

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?

Copy link
Contributor Author

@AmirSa12 AmirSa12 Dec 7, 2023

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!

@mhevery
Copy link
Contributor

mhevery commented Dec 6, 2023

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?

@AmirSa12
Copy link
Contributor Author

AmirSa12 commented Dec 7, 2023

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!

@AmirSa12
Copy link
Contributor Author

AmirSa12 commented Dec 7, 2023

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?

Ready!

@mhevery mhevery merged commit 7868054 into QwikDev:main Dec 7, 2023
22 checks passed
kodiakhq bot referenced this pull request in ascorbic/unpic-img Dec 17, 2023
[![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 (@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;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 [@&#8203;mhevery](https://togithub.com/mhevery) in [https://github.com/BuilderIO/qwik/pull/5595](https://togithub.com/BuilderIO/qwik/pull/5595)

##### New Contributors

-   [@&#8203;AmirSa12](https://togithub.com/AmirSa12) made their first contribution in [https://github.com/BuilderIO/qwik/pull/5516](https://togithub.com/BuilderIO/qwik/pull/5516)
-   [@&#8203;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==-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP: docs Improvements or additions to documentation WAITING FOR: user Further information is requested from the issue / pr opener
Projects
None yet
Development

Successfully merging this pull request may close these issues.