Skip to content

Commit 29066ee

Browse files
committed
Initial commit
0 parents  commit 29066ee

File tree

342 files changed

+36593
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+36593
-0
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
27+
#yarn.lock
28+
29+
# local env files
30+
.env
31+
.env.local
32+
33+
# vercel
34+
.vercel

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"cSpell.enableFiletypes": ["mdx"]
3+
}

CONTRIBUTING.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Contributing to Phase Docs
2+
3+
We're excited that you're interested in contributing to Phase Docs! This document outlines the process for contributing and provides instructions for setting up the project locally.
4+
5+
## How to Contribute
6+
7+
1. Fork the repository.
8+
2. Create a new branch for your contribution.
9+
3. Make your changes.
10+
4. Submit a pull request with a clear description of your changes.
11+
12+
## Setting Up the Development Environment
13+
14+
### Installation
15+
16+
You can install the project dependencies using either npm or yarn:
17+
18+
#### npm
19+
20+
```bash
21+
npm install
22+
```
23+
24+
#### yarn
25+
26+
```bash
27+
yarn install
28+
```
29+
30+
### Development
31+
32+
To run the development server:
33+
34+
```bash
35+
npm run dev
36+
# or
37+
yarn dev
38+
```
39+
40+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
41+
42+
### Building
43+
44+
To build the project:
45+
46+
```bash
47+
npm run build
48+
# or
49+
yarn build
50+
```
51+
52+
This command will also generate a sitemap automatically after the build process.
53+
54+
### Starting the Production Server
55+
56+
To start the production server:
57+
58+
```bash
59+
npm run start
60+
# or
61+
yarn start
62+
```
63+
64+
### Linting
65+
66+
To run the linter:
67+
68+
```bash
69+
npm run lint
70+
# or
71+
yarn lint
72+
```
73+
74+
## Documentation
75+
76+
- Update the documentation if you're changing functionality.
77+
- Use clear and concise language in your documentation.
78+
- Provide examples where appropriate.
79+
80+
## Submitting Changes
81+
82+
1. Push your changes to your fork.
83+
2. Submit a pull request to the main repository.
84+
3. Clearly describe your changes and why you think they should be merged.
85+
4. Be prepared to address any feedback or questions about your pull request.
86+
87+
## Questions?
88+
89+
If you have any questions or need further clarification, you can get in touch with on in your [Community Slack](https://slack.phase.dev).
90+
91+
Thank you for contributing to Phase Docs!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Phase Security Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Phase Docs
2+
3+
![Phase Console](public/assets/images/phase-docs.png)
4+
5+
This repository contains the documentation website for Phase. You can view the live docs at [https://docs.phase.dev](https://docs.phase.dev/).
6+
7+
## Contributing
8+
9+
We love contributions. Please see [CONTRIBUTING.md](/CONTRIBUTING.md)
10+
11+
## License
12+
13+
This project is licensed under the MIT License. See the LICENSE file for details.
14+
15+
16+
The MIT License is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don't hold you liable.
17+
18+
Copyright (c) 2024 Phase Security Inc.

jsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@/*": ["src/*"]
6+
}
7+
}
8+
}

next-sitemap.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: process.env.SITE_URL || 'https://docs.phase.dev',
4+
generateRobotsTxt: true, // (optional)
5+
generateIndexSitemap: false,
6+
}

next.config.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import nextMDX from '@next/mdx'
2+
import { remarkPlugins } from './src/mdx/remark.mjs'
3+
import { rehypePlugins } from './src/mdx/rehype.mjs'
4+
import { recmaPlugins } from './src/mdx/recma.mjs'
5+
import withSearch from './src/mdx/search.mjs'
6+
7+
const withMDX = nextMDX({
8+
options: {
9+
remarkPlugins,
10+
rehypePlugins,
11+
recmaPlugins,
12+
providerImportSource: '@mdx-js/react',
13+
},
14+
})
15+
16+
/** @type {import('next').NextConfig} */
17+
const nextConfig = {
18+
reactStrictMode: false,
19+
output: 'export',
20+
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
21+
experimental: {
22+
scrollRestoration: true,
23+
},
24+
images: {
25+
unoptimized: true,
26+
},
27+
}
28+
29+
export default withSearch(withMDX(nextConfig))

0 commit comments

Comments
 (0)