-
Notifications
You must be signed in to change notification settings - Fork 36
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 site for inertia-django adapter #67
Open
SarthakJariwala
wants to merge
21
commits into
inertiajs:main
Choose a base branch
from
SarthakJariwala:docs-scaffold
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
2eeb105
initial docs scaffold
SarthakJariwala 205b4b4
core concepts pages
SarthakJariwala a15618c
Basics section - Links
SarthakJariwala 8daada2
add pages later
SarthakJariwala b371386
add links
SarthakJariwala 21c94ea
add logo
SarthakJariwala 41bdef4
update actions and logo on index page
SarthakJariwala b2f048a
mv images to public dir and add og_image
SarthakJariwala 04f9eee
minor formatting changes
SarthakJariwala 926c8db
use title, description, and image defined top of file
SarthakJariwala 7354ae3
add code-splitting and scroll-management to avoid broken links
SarthakJariwala 1b76700
client side setup
SarthakJariwala 28f7c87
scaffold for server side setup
SarthakJariwala 5f14478
update install link
SarthakJariwala a4f3161
partial reload scaffold
SarthakJariwala f4532c1
update config with new links
SarthakJariwala e49df41
action to depoy to GH pages
SarthakJariwala 7dee819
update client-side setup docs
SarthakJariwala 44e2be4
add server-side setup docs
SarthakJariwala 578c840
update package-lock.json
SarthakJariwala 3fbeee4
add sections to manual installation
SarthakJariwala 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 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,55 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build with VitePress | ||
run: npm run docs:build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/.vitepress/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains 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,3 @@ | ||
node_modules | ||
.vitepress/dist | ||
.vitepress/cache |
This file contains 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,107 @@ | ||
import { defineConfig } from "vitepress"; | ||
|
||
const title = "Inertia Django"; | ||
const description = "Build single page apps, without building an API"; | ||
const site = "https://inertiajs.com"; | ||
const image = `${site}/og_image.png`; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: title, | ||
description: description, | ||
|
||
cleanUrls: true, | ||
|
||
head: [ | ||
["link", { rel: "icon", href: "/favicon.ico", sizes: "32x32" }], | ||
["link", { rel: "icon", href: "/icon.svg", type: "image/svg+xml" }], | ||
|
||
["meta", { name: "twitter:card", content: "summary_large_image" }], | ||
["meta", { name: "twitter:site", content: site }], | ||
["meta", { name: "twitter:description", value: description }], | ||
["meta", { name: "twitter:image", content: image }], | ||
|
||
["meta", { property: "og:type", content: "website" }], | ||
["meta", { property: "og:locale", content: "en_US" }], | ||
["meta", { property: "og:site", content: site }], | ||
["meta", { property: "og:site_name", content: title }], | ||
["meta", { property: "og:image", content: image }], | ||
["meta", { property: "og:description", content: description }], | ||
], | ||
|
||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: "Home", link: "/" }, | ||
{ text: "Guide", link: "/guide" }, | ||
{ | ||
text: "Links", | ||
items: [ | ||
{ | ||
text: "Official Inertia.js docs", | ||
link: "https://inertiajs.com", | ||
}, | ||
{ | ||
text: "inertia-django on PyPI", | ||
link: "https://pypi.org/project/inertia-django", | ||
}, | ||
], | ||
}, | ||
], | ||
|
||
logo: "/logo.svg", | ||
|
||
sidebar: { | ||
"/guide/": [ | ||
{ | ||
items: [{ text: "Introduction", link: "/guide" }], | ||
}, | ||
{ | ||
text: "Installation", | ||
items: [ | ||
{ | ||
text: "Server-side", | ||
link: "/guide/server-side-setup", | ||
}, | ||
{ | ||
text: "Client-side", | ||
link: "/guide/client-side-setup", | ||
}, | ||
], | ||
}, | ||
{ | ||
text: "Core concepts", | ||
items: [ | ||
{ text: "Who is it for", link: "/guide/who-is-it-for" }, | ||
{ text: "How it works", link: "/guide/how-it-works" }, | ||
{ text: "The protocol", link: "/guide/the-protocol" }, | ||
], | ||
}, | ||
{ | ||
text: "The basics", | ||
items: [{ text: "Links", link: "/guide/links" }], | ||
}, | ||
{ | ||
text: "Advanced", | ||
items: [ | ||
{ | ||
text: "Scroll management", | ||
link: "/guide/scroll-management", | ||
}, | ||
{ | ||
text: "Code splitting", | ||
link: "/guide/code-splitting", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
|
||
socialLinks: [ | ||
{ | ||
icon: "github", | ||
link: "https://github.com/inertiajs/inertia-django", | ||
}, | ||
], | ||
}, | ||
}); |
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.
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.
Related to my comment from earlier: I'm not sure what this should be. I guess it depends on where we decide to host the docs.
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'm double checking right now with some of our users, I'll answer here asap. Thank you for checking!