Skip to content

Migration to Vite #1047

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

Open
wants to merge 106 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
18b81a4
initial migration to vite
mrin9 Oct 20, 2024
086d354
added html-literals minifier
mrin9 Oct 20, 2024
d43fd18
fixes #1051 - filter using match-paths attribute was broken due to typo
mrin9 Oct 23, 2024
91782b4
generated build
mrin9 Oct 23, 2024
7e88eaa
fix incorrectly closed tag
mrin9 Oct 22, 2024
e375936
bump packages and fix eslint import issue
mrin9 Oct 23, 2024
3b75298
fixes #1048 - streamline data-type separator rendering in schemas
mrin9 Oct 24, 2024
3f690dc
ump cookie and express
dependabot[bot] Oct 24, 2024
4d7bb0a
including jsdoc and typescript
loraderon Nov 5, 2024
88c74f4
initial migration to vite
mrin9 Oct 20, 2024
19f5b3d
new generated build
mrin9 Nov 6, 2024
5c662ee
benerated build
mrin9 Nov 6, 2024
c3bc835
added vite lib mode and overrite es module minification as vite do no…
mrin9 Nov 6, 2024
fa570cc
bump packages and fix eslint import issue
mrin9 Oct 23, 2024
c45ca03
fix api-info margin
mrin9 Nov 6, 2024
5e2f1e6
initial migration to vite
mrin9 Oct 20, 2024
29cbee3
initial migration to vite
mrin9 Oct 20, 2024
8deb001
fix prettier style issues
mrin9 Nov 7, 2024
8fbc41e
Use Astro to generate Docs and Vite to bundle RapiDoc component in li…
mrin9 Nov 9, 2024
54ab1f0
initial astro based example html generation
mrin9 Nov 9, 2024
433dd35
added google analytics to the layout
mrin9 Nov 10, 2024
c949c1e
added common css for examples
mrin9 Nov 10, 2024
e49ebf5
added aditional examples containing scripts
mrin9 Nov 10, 2024
6f30e6e
moved specs, images , third party js and css to public folder
mrin9 Nov 10, 2024
0ed4c71
WORKS in dev and build mode git status! - fixed minor issues with pat…
mrin9 Nov 10, 2024
4ae49bb
renamed docs/dist to docs/generated-docs and updated associated configs
mrin9 Nov 10, 2024
dd2accf
Added more examples using Astro components, included few slots and ma…
mrin9 Nov 10, 2024
7bea0ce
added all changes to the folder structure
mrin9 Nov 10, 2024
570cf71
created initial structure for api and list doc pages along with a com…
mrin9 Nov 11, 2024
3cd4472
improved TopBar component and added skeleton of various documentation…
mrin9 Nov 11, 2024
c8f0a64
added home-page and improved top-bar component
mrin9 Nov 12, 2024
8f6fd1b
added cards layout to example list page
mrin9 Nov 12, 2024
1da6085
added card styles for example list page
mrin9 Nov 13, 2024
ffece8d
improved doc styles
mrin9 Nov 13, 2024
2aa4b42
basic example list page skeleton is done
mrin9 Nov 14, 2024
1b3d6f9
improved doc pages styles
mrin9 Nov 15, 2024
4e800b3
added working API page skeliton with some sample data
mrin9 Nov 15, 2024
0e281ac
cleaned up docs styles and components
mrin9 Nov 16, 2024
cae2bc2
added allowed value rendering logic to API table
mrin9 Nov 16, 2024
3dc2b6e
added rapidoc-api data for attributes and menthods
mrin9 Nov 17, 2024
142a83b
added prism code hilighting and added code blocks in API page for tes…
mrin9 Nov 18, 2024
f03765c
added more content to Rapidoc API Data
mrin9 Nov 19, 2024
c1559cf
update documentation data for RapiDoc API
mrin9 Nov 19, 2024
f7a1b87
update documentation data for RapiDoc API (api and methods completed)
mrin9 Nov 19, 2024
3a73198
finished cntent of RapiDoc API page
mrin9 Nov 19, 2024
0e611e1
adjusted Document site styles and layout
mrin9 Nov 20, 2024
5e9a037
Added API Doc heading click handler
mrin9 Nov 21, 2024
9fd5295
imploved content in Rapidoc API document
mrin9 Nov 21, 2024
0699fb8
improved example list styles
mrin9 Nov 21, 2024
6a200e6
Added yaml changes hot reload
mrin9 Nov 21, 2024
1c5266a
improve example card listing by enabeling support for wide cards
mrin9 Nov 21, 2024
dfe4fd0
added more content to example list page
mrin9 Nov 21, 2024
0387775
completed content for example list documentation
mrin9 Nov 22, 2024
6eefc74
completed quicstart doc content
mrin9 Nov 22, 2024
f39bdd5
added documentation pages fro examples and rapidoc-mini
mrin9 Nov 23, 2024
da53df8
added performnce documentation
mrin9 Nov 23, 2024
529fe9a
improved and added new documentation content and styles
mrin9 Nov 23, 2024
dd21f48
added content for oauth-setup
mrin9 Nov 23, 2024
12f5e39
added documentation for mixing HTML using slots
mrin9 Nov 23, 2024
3ca278d
added documentation home page
mrin9 Nov 25, 2024
73328df
converted some examples htmls to astro files
mrin9 Nov 25, 2024
c0d8e5e
converted some examples htmls to astro files
mrin9 Nov 25, 2024
d09beb8
converted some examples htmls to astro files - part 3
mrin9 Nov 26, 2024
9223e35
converted some examples htmls to astro files - part 4
mrin9 Nov 26, 2024
3005b20
improved logo display image skewing issue
mrin9 Nov 26, 2024
c827978
converted some examples htmls to astro files - part 5
mrin9 Nov 26, 2024
a0442bb
fixed logic to get the associated spec from the documentation path
mrin9 Nov 26, 2024
5390f10
converted some examples htmls to astro files - part 6
mrin9 Nov 26, 2024
9530b48
converted some examples htmls to astro files - part 7
mrin9 Nov 26, 2024
d1fcecd
converted some examples htmls to astro files - part 8 > all examples …
mrin9 Nov 26, 2024
e749e62
fixed all prettier eslint and lit-analyzer warnings
mrin9 Nov 27, 2024
edc6418
fixed couple of documenttion examples
mrin9 Nov 27, 2024
86a98f5
replaced background-color with background shorthand in all css and ad…
mrin9 Nov 27, 2024
09015e4
fixed missing css-part btn-copy
mrin9 Nov 27, 2024
045d78f
improved documentation examples
mrin9 Nov 27, 2024
a6d5437
bump astro js to 5.0.0-beta.12 which uses vite 6.0.1
mrin9 Nov 28, 2024
822ccca
cleanup example specs
mrin9 Dec 1, 2024
205095b
cleaned up example specs
mrin9 Dec 2, 2024
26cd1e5
added initial test cases
mrin9 Dec 2, 2024
da34ffc
refactored example and test inline scripts into the common example la…
mrin9 Dec 3, 2024
362526c
fixes #1050 - approximate Max height calculation of navigation tags w…
mrin9 Dec 3, 2024
37ebb9e
added more test cases - part 2
mrin9 Dec 3, 2024
fb0e9af
using swagger client to resolve the OpenAPI Spec - This drops support…
mrin9 Dec 5, 2024
d4940b6
Updated documentation
mrin9 Dec 5, 2024
53b2c33
minor modification to markdown code colors
mrin9 Dec 5, 2024
7d6ea27
renamed slot custom-header to fixed-header
mrin9 Dec 5, 2024
16bca3a
change nav bar tags expand/collapse max-height assignment using css only
mrin9 Dec 5, 2024
d3d7255
replace custom search dialog component with html native dialog element
mrin9 Dec 5, 2024
1a2fbf2
added toggle button for side navigation bar when responsive rules hid…
mrin9 Dec 5, 2024
5962c4b
updated documentation and tests
mrin9 Dec 5, 2024
4cdbc18
minor reformating of template literals
mrin9 Dec 6, 2024
faa53e6
upgraded markedjs and replaced markedjs slugger with github slugger
mrin9 Dec 6, 2024
b8da149
added new test cases
mrin9 Dec 7, 2024
b0d6eb2
added generated docs
mrin9 Dec 7, 2024
3a7988f
fixes #1061 - santize descriptions to mute the possibility of xss att…
mrin9 Dec 7, 2024
c6b6ebb
bumped packages
mrin9 Dec 16, 2024
134345c
fixes #1063 in branch vite branch
mrin9 Dec 17, 2024
393f207
bumped packages
mrin9 Dec 20, 2024
ab61f17
bump packages
mrin9 Jan 4, 2025
575f444
bump packages
mrin9 Jan 10, 2025
802f37d
fixes #1069 - Long field names in Shecma Style = table should have el…
mrin9 Jan 10, 2025
17a1180
fixes #1068 curl syntax for JSON -d should escape single quote
mrin9 Jan 10, 2025
a071ad8
fixes #1067 - Add support for which is deprecated in 3.1.0 and repla…
mrin9 Jan 15, 2025
749e7e6
bump packages
mrin9 Jan 15, 2025
b5e536d
bump packages
mrin9 Jan 21, 2025
a868e5e
bump packages
mrin9 Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .astro/content-assets.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default new Map();
1 change: 1 addition & 0 deletions .astro/content-modules.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default new Map();
155 changes: 155 additions & 0 deletions .astro/content.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
declare module 'astro:content' {
export interface RenderResult {
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
headings: import('astro').MarkdownHeading[];
remarkPluginFrontmatter: Record<string, any>;
}
interface Render {
'.md': Promise<RenderResult>;
}

export interface RenderedContent {
html: string;
metadata?: {
imagePaths: Array<string>;
[key: string]: unknown;
};
}
}

declare module 'astro:content' {
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;

export type CollectionKey = keyof AnyEntryMap;
export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;

export type ContentCollectionKey = keyof ContentEntryMap;
export type DataCollectionKey = keyof DataEntryMap;

type AllValuesOf<T> = T extends any ? T[keyof T] : never;
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
ContentEntryMap[C]
>['slug'];

/** @deprecated Use `getEntry` instead. */
export function getEntryBySlug<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
// Note that this has to accept a regular string too, for SSR
entrySlug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;

/** @deprecated Use `getEntry` instead. */
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
collection: C,
entryId: E,
): Promise<CollectionEntry<C>>;

export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
collection: C,
filter?: (entry: CollectionEntry<C>) => entry is E,
): Promise<E[]>;
export function getCollection<C extends keyof AnyEntryMap>(
collection: C,
filter?: (entry: CollectionEntry<C>) => unknown,
): Promise<CollectionEntry<C>[]>;

export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
}): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
}): E extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
slug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(
collection: C,
id: E,
): E extends keyof DataEntryMap[C]
? string extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]> | undefined
: Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;

/** Resolve an array of entry references from the same collection */
export function getEntries<C extends keyof ContentEntryMap>(
entries: {
collection: C;
slug: ValidContentEntrySlug<C>;
}[],
): Promise<CollectionEntry<C>[]>;
export function getEntries<C extends keyof DataEntryMap>(
entries: {
collection: C;
id: keyof DataEntryMap[C];
}[],
): Promise<CollectionEntry<C>[]>;

export function render<C extends keyof AnyEntryMap>(
entry: AnyEntryMap[C][string],
): Promise<RenderResult>;

export function reference<C extends keyof AnyEntryMap>(
collection: C,
): import('astro/zod').ZodEffects<
import('astro/zod').ZodString,
C extends keyof ContentEntryMap
? {
collection: C;
slug: ValidContentEntrySlug<C>;
}
: {
collection: C;
id: keyof DataEntryMap[C];
}
>;
// Allow generic `string` to avoid excessive type errors in the config
// if `dev` is not running to update as you edit.
// Invalid collection names will be caught at build time.
export function reference<C extends string>(
collection: C,
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;

type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
>;

type ContentEntryMap = {

};

type DataEntryMap = {

};

type AnyEntryMap = ContentEntryMap & DataEntryMap;

export type ContentConfig = typeof import("../docs/src/content.config.mjs");
}
1 change: 1 addition & 0 deletions .astro/data-store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[["Map",1,2],"meta::meta",["Map",3,4],"astro-version","5.0.3"]
5 changes: 5 additions & 0 deletions .astro/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"_variables": {
"lastUpdateCheck": 1733268214099
}
}
1 change: 1 addition & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="astro/client" />
42 changes: 0 additions & 42 deletions .babelrc.json

This file was deleted.

53 changes: 0 additions & 53 deletions .eslintrc

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 140
}
Loading