-
Notifications
You must be signed in to change notification settings - Fork 0
Feat: Migrate the guides from protocol documentation #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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
eb4b8df
Feat: Migrate the guides from protocol documentation
64ix 9717bfb
forgot prettier
64ix 8bd76d6
add fix mermaid to todo
64ix c99f25f
Merge branch 'main' into feature/migrate-protocol-guides
Le-Caignec 76f2e09
feat: update package.json and add VitePress configuration
Le-Caignec 4ca729f
Add advanced guides for building confidential iApps
Le-Caignec b23a796
refactor: remove tutorial steps from quick start guides for clarity
Le-Caignec 89428b6
refactor: update terminology in iApp building guides
Le-Caignec f8c45ff
refactor: improve formatting in advanced iApp building guide
Le-Caignec 64f0519
Update README advanced iApp building guide note
64ix 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 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 |
---|---|---|
@@ -0,0 +1,142 @@ | ||
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'; | ||
import tailwindcss from '@tailwindcss/vite'; | ||
import { defineConfig, loadEnv } from 'vitepress'; | ||
import { fileURLToPath, URL } from 'node:url'; | ||
import { getSidebar } from './sidebar'; | ||
import { | ||
groupIconMdPlugin, | ||
groupIconVitePlugin, | ||
} from 'vitepress-plugin-group-icons'; | ||
import { withMermaid } from 'vitepress-plugin-mermaid'; | ||
|
||
// Charger les variables d'environnement | ||
const env = loadEnv('', process.cwd()); | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default withMermaid( | ||
defineConfig({ | ||
title: 'iExec documentation', | ||
description: | ||
'Build decentralized applications that combine ownership, privacy, and monetization.', | ||
cleanUrls: true, | ||
lastUpdated: true, | ||
vite: { | ||
plugins: [tailwindcss(), groupIconVitePlugin()], | ||
resolve: { | ||
alias: { | ||
'@': fileURLToPath(new URL('../src', import.meta.url)), | ||
}, | ||
}, | ||
// Expose environment variables to the client | ||
define: { | ||
'import.meta.env.VITE_REOWN_PROJECT_ID': JSON.stringify( | ||
env.VITE_REOWN_PROJECT_ID | ||
), | ||
}, | ||
}, | ||
srcDir: './src', | ||
markdown: { | ||
codeTransformers: [transformerTwoslash()], | ||
config(md) { | ||
md.use(groupIconMdPlugin); | ||
}, | ||
}, | ||
|
||
head: [ | ||
['link', { rel: 'icon', href: '/Logo-RLC-Yellow.png' }], | ||
[ | ||
'link', | ||
{ | ||
rel: 'stylesheet', | ||
href: 'https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap', | ||
}, | ||
], | ||
[ | ||
'script', | ||
{}, | ||
` | ||
window.axeptioSettings = { | ||
clientId: "6413111857e4d2a6342cd5c6", | ||
cookiesVersion: "iexec-en", | ||
}; | ||
|
||
(function(d, s) { | ||
var t = d.getElementsByTagName(s)[0], e = d.createElement(s); | ||
e.async = true; e.src = "//static.axept.io/sdk.js"; | ||
t.parentNode.insertBefore(e, t); | ||
})(document, "script"); | ||
`, | ||
], | ||
// Mava widget | ||
[ | ||
'script', | ||
{ | ||
defer: '', | ||
src: 'https://widget.mava.app', | ||
'widget-version': 'v2', | ||
id: 'MavaWebChat', | ||
'enable-sdk': 'false', | ||
'data-token': | ||
'8e4e10aad5750451e8726768e8c639dae54f461beeb176f5ebd687371c9390f2', | ||
}, | ||
], | ||
// Hotjar Tracking Script | ||
[ | ||
'script', | ||
{}, | ||
` | ||
(function(h,o,t,j,a,r){ | ||
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; | ||
h._hjSettings={hjid:5303222,hjsv:6}; | ||
a=o.getElementsByTagName('head')[0]; | ||
r=o.createElement('script');r.async=1; | ||
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; | ||
a.appendChild(r); | ||
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); | ||
`, | ||
], | ||
], | ||
|
||
themeConfig: { | ||
// https://vitepress.dev/reference/default-theme-config | ||
nav: [ | ||
{ text: 'Get Started', link: '/get-started/welcome' }, | ||
{ text: 'Guides', link: '/guides/build-iapp/' }, | ||
{ text: 'References', link: '/references/dataProtector' }, | ||
{ | ||
component: 'ChainSelector', | ||
props: { | ||
className: 'w-48', | ||
}, | ||
}, | ||
], | ||
outline: { | ||
level: [2, 4], | ||
}, | ||
|
||
sidebar: getSidebar(), | ||
|
||
search: { | ||
provider: 'local', | ||
}, | ||
|
||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/iExecBlockchainComputing' }, | ||
{ icon: 'x', link: 'https://twitter.com/iEx_ec' }, | ||
{ icon: 'discord', link: 'https://discord.com/invite/pbt9m98wnU' }, | ||
], | ||
|
||
editLink: { | ||
pattern: | ||
'https://github.com/iExecBlockchainComputing/documentation/blob/main/:path', | ||
text: 'Suggest changes to this page', | ||
}, | ||
|
||
logo: { | ||
light: '/Logo-RLC-Yellow.png', | ||
dark: '/Logo-RLC-Yellow.png', | ||
alt: 'iExec logo', | ||
}, | ||
}, | ||
}) | ||
); |
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
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.