-
Notifications
You must be signed in to change notification settings - Fork 0
improvements #9
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
Merged
Merged
improvements #9
Changes from 21 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
6d70057
small improvements
abrulic 3503ff6
fix for standalone .mdx files + typesafety for generated pages and se…
abrulic f60013e
small changes
abrulic 0ce7516
updates
abrulic 933ad24
small updates
abrulic 5d145a4
fixes
abrulic 324471b
fixes
abrulic 978887a
small updates
abrulic 45e5517
deployed app using standard fly launch and fly deploy commands
abrulic 9831bb1
Merge branch 'main' into improvements
abrulic 8b73a61
fixes in loding content collections and some UI fixes
abrulic 66675a5
removed content-collections:build script from package.json
abrulic ab416e8
accordion component updated
abrulic c1a4fbe
added on PR fly deploy action
abrulic 219f3aa
removed flydotio/dockerfile
abrulic 69144df
fixed content-ollections Page imports
abrulic 747aefe
fly deploy workflow update
abrulic b231a6c
fly deploy workflow update
abrulic 2222945
content-collections cli returned
abrulic 1e49bd5
added small console log for debugging
abrulic cb8a2f3
added small console log for debugging
abrulic e225d77
added small console log for debugging
abrulic 1f1f090
added small console log for debugging and pr-close workflow
abrulic 0104233
small fix
abrulic eec49e9
updated env_vars in ci.yml
abrulic b649f7b
debounced search
abrulic 1e653ee
small update in seo.ts and favion.ico changed
abrulic 849285b
added meta for index page
abrulic fb234fa
small fix in filename
abrulic a802352
fix with seo image?
abrulic 5dbf938
small fixes in padding, leading, font size
abrulic 5a7a8c8
update in fly.toml, dockerfile and package.json
abrulic 2b2c5b3
small change in dockerifle
abrulic 2ae70d1
added http_checks in fly.toml
abrulic 38abb62
small update in fly.toml
abrulic 40b3f9d
small update?
abrulic 5578c64
fly tol update
abrulic 2926f85
previous state?
abrulic 13504f9
check?
abrulic f68730a
previous state
abrulic d2c3788
small fix
abrulic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| node_modules | ||
| public/build | ||
| build | ||
| dist | ||
| out | ||
| coverage | ||
| .history | ||
| .react-router | ||
|
|
||
| # Other Coverage tools | ||
| *.lcov | ||
|
|
||
| # macOS | ||
| .DS_* | ||
|
|
||
| # Cache Directories and files | ||
| .cache | ||
| .yarn* | ||
| .env* | ||
| !.env.example | ||
| .swp* | ||
| .turbo | ||
| .npm | ||
| .stylelintcache | ||
| *.tsbuildinfo | ||
| .node_repl_history | ||
|
|
||
| # Lock files from other package managers | ||
| package-lock.json | ||
| yarn.lock | ||
|
|
||
| # General tempory files and directories | ||
| t?mp | ||
| .t?mp | ||
| *.t?mp | ||
|
|
||
| # Docusaurus cache and generated files | ||
| .docusaurus | ||
|
|
||
| # Output of 'npm pack' | ||
| *.tgz | ||
| *.tar | ||
| *.tar.gz | ||
| *.tar.bz2 | ||
| *.tbz | ||
| *.zip | ||
|
|
||
| # Runtime data | ||
| pids | ||
| *.pid | ||
| *.seed | ||
| *.pid.lock | ||
|
|
||
| # Diagnostic reports (https://nodejs.org/api/report.html) | ||
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
|
||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| lerna-debug.log* | ||
| .pnpm-debug.log* | ||
| vite.config.ts.* | ||
|
|
||
| # Playwright various test reports | ||
| test-results | ||
| playwright-report | ||
| blob-report | ||
|
|
||
|
|
||
| # Editors | ||
| .idea/workspace.xml | ||
| .idea/usage.statistics.xml | ||
| .idea/shelf | ||
|
|
||
| # Dont commit sqlite database files | ||
| *.db | ||
| *.sqlite | ||
| *.sqlite3 | ||
| *.db-journal | ||
|
|
||
|
|
||
| # Content collections output files | ||
| .content-collections | ||
|
|
||
| # Output base directory of the documentation | ||
| generated-docs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| GITHUB_OWNER="github-owner" # Your username or organization name (Optional. For edit/report an issue for the documentation page) | ||
| GITHUB_REPO="github-repo" # Repository name (Optional. For edit/report an issue for the documentation page) | ||
| APP_ROOT_PATH="/path/to/your/app" # Optional. Default is `process.cwd()` | ||
| GITHUB_REPO_URL="github-repo-url" # Optional. If you want to have GitHub icon link in the header or footer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # syntax = docker/dockerfile:1 | ||
|
|
||
| # Adjust NODE_VERSION as desired | ||
| ARG NODE_VERSION=22.17.0 | ||
| FROM node:${NODE_VERSION}-slim AS base | ||
|
|
||
| LABEL fly_launch_runtime="Node.js" | ||
|
|
||
| # Node.js app lives here | ||
| WORKDIR /app | ||
|
|
||
| # Set production environment | ||
| ENV NODE_ENV="production" | ||
|
|
||
| # Install pnpm | ||
| ARG PNPM_VERSION=10.2.0 | ||
| RUN npm install -g pnpm@$PNPM_VERSION | ||
|
|
||
|
|
||
| # Throw-away build stage to reduce size of final image | ||
| FROM base AS build | ||
|
|
||
| # Install packages needed to build node modules | ||
| RUN apt-get update -qq && \ | ||
| apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 git | ||
|
|
||
| # Install node modules | ||
| COPY .npmrc package.json pnpm-lock.yaml ./ | ||
| RUN pnpm install --frozen-lockfile --prod=false | ||
|
|
||
| # Copy application code | ||
| COPY . . | ||
|
|
||
| # Build application | ||
| RUN pnpm run generate:docs | ||
| RUN pnpm run build | ||
|
|
||
| # Remove development dependencies | ||
| RUN pnpm prune --prod | ||
|
|
||
|
|
||
| # Final stage for app image | ||
| FROM base | ||
|
|
||
| # Copy built application | ||
| COPY --from=build /app /app | ||
|
|
||
| # Start the server by default, this can be overwritten at runtime | ||
| EXPOSE 3000 | ||
| CMD [ "pnpm", "run", "start" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import type { ComponentProps } from "react" | ||
| import { Icon } from "~/ui/icon/icon" | ||
| import type { IconName } from "~/ui/icon/icons/types" | ||
| import { cn } from "~/utils/css" | ||
|
|
||
| interface IconLinkProps extends ComponentProps<"a"> { | ||
| name: IconName | ||
| } | ||
|
|
||
| export const IconLink = ({ name, className, ...props }: IconLinkProps) => { | ||
| const { href } = props | ||
| const isExternal = typeof href === "string" && /^https?:\/\//i.test(href) | ||
| return ( | ||
| <a | ||
| className={cn( | ||
| "group relative inline-flex cursor-pointer items-center justify-center rounded-full text-[var(--color-text-active)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border)] focus-visible:ring-offset-2", | ||
| className | ||
| )} | ||
| target={isExternal ? "_blank" : undefined} | ||
| rel="noopener noreferrer" | ||
| aria-label={name} | ||
| href={href} | ||
| {...props} | ||
| > | ||
| <Icon name={name} className="size-4 transition-all duration-300 xl:size-5" /> | ||
| </a> | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import type { Page } from "content-collections" | ||
| import type { SidebarSection } from "~/utils/create-sidebar-tree" | ||
| import { buildDocPathFromSlug } from "~/utils/path-builders" | ||
|
|
||
| export const buildBreadcrumbs = ( | ||
| items: SidebarSection[], | ||
| pathname: string, | ||
| documentationPages: Pick<Page, "title" | "slug">[] = [] | ||
| ) => { | ||
| // for standalone pages: /:filename | ||
| for (const page of documentationPages) { | ||
| const docPath = buildDocPathFromSlug(page.slug) | ||
| if (docPath === pathname) { | ||
| return [page.title] | ||
| } | ||
| } | ||
|
|
||
| // for sectioned pages: /:section/:subsection?/:filename | ||
| let trail: string[] = [] | ||
|
|
||
| const walk = (section: SidebarSection, acc: string[]): boolean => { | ||
| for (const doc of section.documentationPages) { | ||
| const docPath = buildDocPathFromSlug(doc.slug) | ||
| if (docPath === pathname) { | ||
| trail = [...acc, section.title, doc.title] | ||
| return true | ||
| } | ||
| } | ||
|
|
||
| for (const sub of section.subsections) { | ||
| if (walk(sub, [...acc, section.title])) return true | ||
| } | ||
| return false | ||
| } | ||
|
|
||
| for (const root of items) { | ||
| if (walk(root, [])) break | ||
| } | ||
|
|
||
| return trail | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| import type { SidebarTree } from "~/utils/create-sidebar-tree" | ||
| import { cn } from "~/utils/css" | ||
| import type { SidebarSection } from "./sidebar" | ||
| import { SidebarContent } from "./sidebar-content" | ||
|
|
||
| export const DesktopSidebarPanel = ({ items, className }: { items: SidebarSection[]; className: string }) => ( | ||
| export const DesktopSidebarPanel = ({ sidebarTree, className }: { sidebarTree: SidebarTree; className: string }) => ( | ||
| <div | ||
| className={cn( | ||
| "sticky top-[var(--header-height)] flex h-[calc(100vh-var(--header-height))] w-80 flex-col overflow-hidden bg-[var(--color-background)] p-4", | ||
| className | ||
| )} | ||
| > | ||
| <SidebarContent items={items} /> | ||
| <SidebarContent sidebarTree={sidebarTree} /> | ||
| </div> | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.