Skip to content

add: custom navigation added #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 96 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
37fff37
add: custom navigation added
nikhiltidke101 Feb 20, 2024
6ebe196
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 Feb 20, 2024
5641125
add: github workflow added
nikhiltidke101 Feb 20, 2024
e094d29
add: github workflow added
nikhiltidke101 Feb 20, 2024
54406d4
update: docs yaml, and preview workflow
nikhiltidke101 Feb 20, 2024
3f2fa6e
fix: preview workflow
nikhiltidke101 Feb 20, 2024
c5d9408
fix: header footer data fething
nikhiltidke101 Feb 20, 2024
75b3d18
fix: msc bump
nikhiltidke101 Feb 20, 2024
d7e8376
add: github auth token added
nikhiltidke101 Feb 21, 2024
6c5a336
fix: auth token
nikhiltidke101 Feb 21, 2024
b5ba761
fix: github workflow
nikhiltidke101 Feb 21, 2024
9d620d9
fix: github workflow
nikhiltidke101 Feb 21, 2024
6477525
rerun workflow
nikhiltidke101 Feb 21, 2024
3198e38
remove: npm rc
nikhiltidke101 Feb 21, 2024
62a816d
fix: github workflow
nikhiltidke101 Feb 21, 2024
a1fab01
fix: github workflow v2
nikhiltidke101 Feb 21, 2024
11804b0
fix: github workflow v3
nikhiltidke101 Feb 21, 2024
78a9051
fix: github workflow v4
nikhiltidke101 Feb 21, 2024
078821f
fix: github workflow v5
nikhiltidke101 Feb 21, 2024
1d6d787
fix: fetch call
nikhiltidke101 Feb 21, 2024
29e1282
fix: header and footer cjs added
nikhiltidke101 Feb 21, 2024
ccdef2d
fix: header and footer cjs added
nikhiltidke101 Feb 21, 2024
2f3793e
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 Mar 6, 2024
516ab35
fix: header data rendering
nikhiltidke101 Mar 6, 2024
503e51c
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 Mar 6, 2024
df7412e
fix: header data rendering
nikhiltidke101 Mar 6, 2024
eb54c66
fix: header data rendering
nikhiltidke101 Mar 6, 2024
c8bfb47
fix: header data rendering
nikhiltidke101 Mar 6, 2024
8d1ca5d
fix: header data rendering
nikhiltidke101 Mar 6, 2024
8687b73
add: comment asyn data call
nikhiltidke101 Mar 7, 2024
da868c5
fix: page data sanity fix
nikhiltidke101 Mar 12, 2024
0672298
fix: page data sanity fix
nikhiltidke101 Mar 12, 2024
ff727a0
fix: page data sanity fix
nikhiltidke101 Mar 12, 2024
6a97348
header fix
nikhiltidke101 Mar 27, 2024
8dd26ed
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 Mar 27, 2024
3fa91f4
header fix
nikhiltidke101 Mar 27, 2024
62ba135
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 Mar 27, 2024
000b3a6
fix: workflows
nikhiltidke101 Mar 28, 2024
bc0e1be
bump: msc version
nikhiltidke101 Mar 28, 2024
9b3362f
fix: workflows
nikhiltidke101 Mar 28, 2024
e9221c5
fix: workflows
nikhiltidke101 Mar 28, 2024
4bb3b4e
fix: workflows
nikhiltidke101 Mar 28, 2024
dcd8136
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 Apr 4, 2024
15259d6
fix: update header
nikhiltidke101 Apr 4, 2024
66da88f
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 Apr 4, 2024
5a61cd9
fix: update header
nikhiltidke101 Apr 4, 2024
fc7b048
fix: update header
nikhiltidke101 Apr 4, 2024
3b33973
add: plug script
nikhiltidke101 Apr 4, 2024
1ffbdb3
add: plug script
nikhiltidke101 Apr 4, 2024
07675d5
add: plug script
nikhiltidke101 Apr 4, 2024
5f0688b
add: plug script
nikhiltidke101 Apr 4, 2024
b97d499
add: plug script
nikhiltidke101 Apr 4, 2024
18cbb29
add: plug script
nikhiltidke101 Apr 4, 2024
b7137c8
remove: plug script
nikhiltidke101 Apr 4, 2024
f19ffea
remove: plug script
nikhiltidke101 Apr 4, 2024
219f99a
remove: plug script
nikhiltidke101 Apr 4, 2024
0a2895b
remove: plug script
nikhiltidke101 Apr 4, 2024
3bb3280
remove: plug script
nikhiltidke101 Apr 4, 2024
59d4d00
remove: plug script
nikhiltidke101 Apr 4, 2024
b4688b2
remove: plug script
nikhiltidke101 Apr 4, 2024
2f3b00c
fix: css problem
nikhiltidke101 Apr 4, 2024
1e4258f
fix: css problem
nikhiltidke101 Apr 4, 2024
8f63e95
fix: css problem
nikhiltidke101 Apr 4, 2024
2062388
fix: css problem
nikhiltidke101 Apr 4, 2024
1d87b83
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 May 2, 2024
2b32835
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 May 3, 2024
3cbb357
fix: footer css
nikhiltidke101 May 3, 2024
06bd5da
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 May 3, 2024
ee733a8
fix: sidenav sibling
nikhiltidke101 May 3, 2024
60eb63e
fix: sidenav sibling
nikhiltidke101 May 3, 2024
df39229
fix: sidenav sibling
nikhiltidke101 May 3, 2024
5c817ba
fix: sidenav sibling seperated
nikhiltidke101 May 3, 2024
5e93626
fix: sidenav sibling seperated v2
nikhiltidke101 May 3, 2024
31c15c4
fix: sidenav sibling seperated v3
nikhiltidke101 May 3, 2024
a1c3cb9
fix: sidenav sibling seperated v3
nikhiltidke101 May 3, 2024
81ff3d7
fix: sidenav sibling seperated v4
nikhiltidke101 May 3, 2024
a93b8f0
fix: sidenav sibling seperated v5
nikhiltidke101 May 3, 2024
e087b6d
add: api toggles
nikhiltidke101 May 3, 2024
84fb99b
add: api toggles
nikhiltidke101 May 3, 2024
94eabb9
add: api toggles v2
nikhiltidke101 May 3, 2024
d4039ae
fix: build
nikhiltidke101 May 3, 2024
126ea09
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 May 3, 2024
94d080a
add: fern styles
nikhiltidke101 May 3, 2024
19eaccf
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 May 3, 2024
cc7f741
fix: rendering
nikhiltidke101 May 3, 2024
a0ea7a5
fix: rendering
nikhiltidke101 May 3, 2024
699546c
fix: rendering v2
nikhiltidke101 May 3, 2024
b21faea
fix: styles on dropdown
nikhiltidke101 May 3, 2024
571330b
fix: dropdown border
nikhiltidke101 May 3, 2024
ddb85ef
fix: theme switch
nikhiltidke101 May 14, 2024
bd284dd
fix: theme switch
nikhiltidke101 May 14, 2024
ddebbde
Merge branch 'main' into feat/custom-navigation
nikhiltidke101 May 14, 2024
319ac68
revert: to stable build
nikhiltidke101 May 14, 2024
fc17329
Merge branch 'feat/custom-navigation' of https://github.com/devrev/fe…
nikhiltidke101 May 14, 2024
a76a453
fix: code fixes
nikhiltidke101 May 14, 2024
c071e3c
revert: to stable build
nikhiltidke101 May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/fern-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ jobs:
- name: Install Fern
run: npm install -g fern-api

- name: Build Navigation
run: |
cd custom-implementation
yarn
yarn build
cd ../

- name: Check Fern API is valid
run: fern check
14 changes: 13 additions & 1 deletion .github/workflows/preview-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,23 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
always-auth: true
node-version: '18'
registry-url: https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{secrets.AUTH_TOKEN}}

- name: Install Fern
run: npm install -g fern-api

- name: Build Navigation
run: |
cd custom-implementation
yarn
yarn build
cd ../


- name: Generate Documentation Preview with Fern
id: generate_docs
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:

- name: Download Fern
run: npm install -g fern-api

- name: Build Navigation
run: |
cd custom-implementation
yarn
yarn build
cd ../

- name: Generate and Publish Docs
env:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/publish-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
- name: Install Fern
run: npm install -g fern-api

- name: Build Navigation
run: |
cd custom-implementation
yarn
yarn build
cd ../

- name: Check Fern API is valid
run: fern check

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
fern/*/definition/
.DS_Store
8 changes: 8 additions & 0 deletions custom-implementation/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
node_modules/*
yarn.lock
tailwind.config.js
18 changes: 18 additions & 0 deletions custom-implementation/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
7 changes: 7 additions & 0 deletions custom-implementation/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
dist-ssr
*.local
node_modules/*
yarn.lock
9 changes: 9 additions & 0 deletions custom-implementation/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
semi: false,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
jsxBracketSameLine: true,
endOfLine: 'auto',
}
8 changes: 8 additions & 0 deletions custom-implementation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!doctype html>
<html lang="en">
<body>
<header id="fern-header"></header>
<footer id="fern-footer" style="margin-top:100px"></footer>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions custom-implementation/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "custom-app",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@devrev/marketing-shared-components": "^0.3.13",
"@sanity/client": "^6.15.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"typescript": "^5.2.2",
"vite": "^5.1.0"
}
}
28 changes: 28 additions & 0 deletions custom-implementation/src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use client'

import {
ComponentConfigContext,
FooterV30 as SharedFooter,
} from '@devrev/marketing-shared-components/dist/cjs'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const Footer = ({ list = [], logo, status, compliance, ...rest }: any) => {
// Footer
return (
<ComponentConfigContext.Provider
value={{
origin: 'https://api.docs.devrev.ai',
}}>
<SharedFooter
className="border-none"
list={list}
logo={logo}
status={status}
compliance={compliance}
{...rest}
/>
</ComponentConfigContext.Provider>
)
}

export default Footer
34 changes: 34 additions & 0 deletions custom-implementation/src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
'use client'

import {
ComponentConfigContext,
HeaderV30 as SharedHeader,
} from '@devrev/marketing-shared-components/dist/cjs'

const Header = ({
logo,
links,
actions,
version,
collapseOnScroll = true,
}: // eslint-disable-next-line @typescript-eslint/no-explicit-any
any) => {
return (
<div>
<ComponentConfigContext.Provider
value={{
origin: 'https://api.docs.devrev.ai',
}}>
<SharedHeader
logo={logo}
items={links}
actions={actions}
version={version}
collapseOnScroll={collapseOnScroll}
/>
</ComponentConfigContext.Provider>
</div>
)
}

export default Header
Loading