mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
parent
55cfec8bce
commit
b0deb83019
752 changed files with 64019 additions and 1717 deletions
|
@ -1,4 +1,4 @@
|
|||
<!DOCTYPE html><html lang="fr"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Installation · Docusaurus</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="Docusaurus a été conçu dans l'optique d'être facilement installable et utilisable pour que votre site web soit rapidement opérationnel."/><meta name="docsearch:version" content="1.13.0"/><meta name="docsearch:language" content="fr"/><meta property="og:title" content="Installation · Docusaurus"/><meta property="og:type" content="website"/><meta property="og:url" content="https://docusaurus.io/"/><meta property="og:description" content="Docusaurus a été conçu dans l'optique d'être facilement installable et utilisable pour que votre site web soit rapidement opérationnel."/><meta property="og:image" content="https://docusaurus.io/img/docusaurus.png"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://docusaurus.io/img/docusaurus.png"/><link rel="shortcut icon" href="/img/docusaurus.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://docusaurus.io/blog/atom.xml" title="Docusaurus Blog ATOM Feed"/><link rel="alternate" type="application/rss+xml" href="https://docusaurus.io/blog/feed.xml" title="Docusaurus Blog RSS Feed"/><script>
|
||||
<!DOCTYPE html><html lang="fr"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Installation · Docusaurus</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly!"/><meta name="docsearch:version" content="1.14.0"/><meta name="docsearch:language" content="fr"/><meta property="og:title" content="Installation · Docusaurus"/><meta property="og:type" content="website"/><meta property="og:url" content="https://docusaurus.io/"/><meta property="og:description" content="Docusaurus was designed from the ground up to be easily installed and used to get your website up and running quickly!"/><meta property="og:image" content="https://docusaurus.io/img/docusaurus.png"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://docusaurus.io/img/docusaurus.png"/><link rel="shortcut icon" href="/img/docusaurus.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://docusaurus.io/blog/atom.xml" title="Docusaurus Blog ATOM Feed"/><link rel="alternate" type="application/rss+xml" href="https://docusaurus.io/blog/feed.xml" title="Docusaurus Blog RSS Feed"/><script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
|
@ -12,7 +12,7 @@
|
|||
{"zIndex":100}
|
||||
)
|
||||
});
|
||||
</script><script src="/js/scrollSpy.js"></script><link rel="stylesheet" href="/css/prism.css"/><link rel="stylesheet" href="/css/main.css"/><script src="/js/codetabs.js"></script></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/fr"><img class="logo" src="/img/docusaurus.svg" alt="Docusaurus"/><h2 class="headerTitleWithLogo">Docusaurus</h2></a><a href="/fr/versions"><h3>1.13.0</h3></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/docs/fr/installation" target="_self">Documentations</a></li><li class=""><a href="/docs/fr/tutorial-setup" target="_self">Tutorial</a></li><li class=""><a href="/fr/users" target="_self">Utilisateurs</a></li><li class=""><a href="/blog/" target="_self">Blog</a></li><li class=""><a href="https://github.com/facebook/docusaurus" target="_self">GitHub</a></li><span><li><a id="languages-menu" href="#"><img class="languages-icon" src="/img/language.svg" alt="Languages icon"/>Français</a><div id="languages-dropdown" class="hide"><ul id="languages-dropdown-items"><li><a href="/docs/en/installation">English</a></li><li><a href="/docs/ko/installation">한국어</a></li><li><a href="/docs/pt-BR/installation">Português (Brasil)</a></li><li><a href="/docs/ro/installation">Română</a></li><li><a href="/docs/ru/installation">Русский</a></li><li><a href="/docs/zh-CN/installation">简体中文</a></li><li><a href="https://crowdin.com/project/docusaurus" target="_blank" rel="noreferrer noopener">Aidez-nous à traduire</a></li></ul></div></li><script>
|
||||
</script><script src="/js/scrollSpy.js"></script><link rel="stylesheet" href="/css/prism.css"/><link rel="stylesheet" href="/css/main.css"/><script src="/js/codetabs.js"></script></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/fr"><img class="logo" src="/img/docusaurus.svg" alt="Docusaurus"/><h2 class="headerTitleWithLogo">Docusaurus</h2></a><a href="/fr/versions"><h3>1.14.0</h3></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class="siteNavGroupActive siteNavItemActive"><a href="/docs/fr/installation" target="_self">Documentations</a></li><li class=""><a href="/docs/fr/tutorial-setup" target="_self">Tutorial</a></li><li class=""><a href="/fr/users" target="_self">Utilisateurs</a></li><li class=""><a href="/blog/" target="_self">Blog</a></li><li class=""><a href="https://github.com/facebook/docusaurus" target="_self">GitHub</a></li><span><li><a id="languages-menu" href="#"><img class="languages-icon" src="/img/language.svg" alt="Languages icon"/>Français</a><div id="languages-dropdown" class="hide"><ul id="languages-dropdown-items"><li><a href="/docs/en/installation">English</a></li><li><a href="/docs/ko/installation">한국어</a></li><li><a href="/docs/pt-BR/installation">Português (Brasil)</a></li><li><a href="/docs/ro/installation">Română</a></li><li><a href="/docs/ru/installation">Русский</a></li><li><a href="/docs/zh-CN/installation">简体中文</a></li><li><a href="https://crowdin.com/project/docusaurus" target="_blank" rel="noreferrer noopener">Aidez-nous à traduire</a></li></ul></div></li><script>
|
||||
const languagesMenuItem = document.getElementById("languages-menu");
|
||||
const languagesDropDown = document.getElementById("languages-dropdown");
|
||||
languagesMenuItem.addEventListener("click", function(event) {
|
||||
|
@ -86,7 +86,7 @@
|
|||
<ol>
|
||||
<li><p>Assurez-vous d'avoir la dernière version de <a href="https://nodejs.org/en/download/">Node</a> d'installé. Nous vous recommandons également d'installer <a href="https://yarnpkg.com/en/docs/install">Yarn</a>.</p>
|
||||
<blockquote>
|
||||
<p>Vous devez avoir une version de Node >= 8.x et de Yarn >= 1.5.</p>
|
||||
<p>You have to be on Node >= 8.x and Yarn >= 1.5.</p>
|
||||
</blockquote></li>
|
||||
<li><p>Create a project, if none exists, and change your directory to this project's root.</p>
|
||||
<p>Vous pouvez créer la documentation dans ce dossier. The root directory may contain other files. The Docusaurus installation script will create two new directories: <code>docs</code> and <code>website</code>.</p>
|
||||
|
@ -125,6 +125,9 @@
|
|||
├── siteConfig.js
|
||||
└── static
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>This installation creates some Docker files that are not necessary to run docusaurus. They may be deleted without issue in the interest of saving space. For more information on Docker, please see the <a href="https://docs.docker.com/">Docker documentation</a>.</p>
|
||||
</blockquote>
|
||||
<h2><a class="anchor" aria-hidden="true" id="execution-du-site-web-dexemple"></a><a href="#execution-du-site-web-dexemple" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Exécution du site web d'exemple</h2>
|
||||
<p>Après avoir exécuté le script d'initialisation de Docusaurus, <code>docusaurus-init</code> comme décrit dans la section d'<a href="#installing-docusaurus">Installation</a>, vous devriez avoir un exemple de site web à utiliser comme base. Pour se faire:</p>
|
||||
<ol>
|
||||
|
@ -143,26 +146,26 @@ yarn start (ou npm run start)
|
|||
<p>A tout moment, après avoir installé Docusaurus, vous pouvez vérifier votre version actuelle en allant dans le répertoire <code>website</code> et en écrivant <code>yarn outdated docusaurus</code> ou <code>npm outdated docusaurus</code>.</p>
|
||||
<p>Vous pourrez voir quelque chose comme ça:</p>
|
||||
<pre><code class="hljs">$ yarn outdated
|
||||
Using globally installed version of Yarn
|
||||
yarn outdated v1.5.1
|
||||
warning package.json: No license field
|
||||
warning No license field
|
||||
info Color legend :
|
||||
"<red>" : Major Update backward-incompatible updates
|
||||
"<yellow>" : Minor Update backward-compatible features
|
||||
"<green>" : Patch Update backward-compatible bug fixes
|
||||
Package Current Wanted Latest Package Type URL
|
||||
docusaurus 1.0.9 1.2.0 1.2.0 devDependencies https://github.com/facebook/docusaurus#readme
|
||||
✨ Done in 0.41s.
|
||||
<span class="hljs-keyword">Using</span> globally installed <span class="hljs-keyword">version</span> <span class="hljs-keyword">of</span> Yarn
|
||||
yarn outdated v1<span class="hljs-number">.5</span><span class="hljs-number">.1</span>
|
||||
<span class="hljs-built_in">warning</span> package.json: <span class="hljs-keyword">No</span> license field
|
||||
<span class="hljs-built_in">warning</span> <span class="hljs-keyword">No</span> license field
|
||||
<span class="hljs-keyword">info</span> Color legend :
|
||||
"<red>" : Major <span class="hljs-keyword">Update</span> backward-incompatible updates
|
||||
"<yellow>" : Minor <span class="hljs-keyword">Update</span> backward-compatible features
|
||||
"<green>" : Patch <span class="hljs-keyword">Update</span> backward-compatible bug fixes
|
||||
Package <span class="hljs-keyword">Current</span> Wanted Latest Package <span class="hljs-keyword">Type</span> URL
|
||||
docusaurus <span class="hljs-number">1.0</span><span class="hljs-number">.9</span> <span class="hljs-number">1.2</span><span class="hljs-number">.0</span> <span class="hljs-number">1.2</span><span class="hljs-number">.0</span> devDependencies https://github.com/facebook/docusaurus#readme
|
||||
✨ Done <span class="hljs-keyword">in</span> <span class="hljs-number">0.41</span>s.
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>S'il n'y as pas de version visible sur la sortie de la commande <code>outdated</code>, vous êtes à jour.</p>
|
||||
</blockquote>
|
||||
<p>Vous pouvez mettre à jour la <a href="https://www.npmjs.com/package/docusaurus">dernière version</a> de Docusaurus via:</p>
|
||||
<pre><code class="hljs">yarn upgrade docusaurus --latest
|
||||
<pre><code class="hljs">yarn<span class="hljs-built_in"> upgrade </span>docusaurus --latest
|
||||
</code></pre>
|
||||
<p>ou</p>
|
||||
<pre><code class="hljs">npm update docusaurus
|
||||
<pre><code class="hljs"><span class="hljs-built_in">npm</span> update docusaurus
|
||||
</code></pre>
|
||||
<blockquote>
|
||||
<p>Si vous obtenez une erreur après la mise à jours, essayez de nettoyer votre cache Babel (généralement il se trouve dans un <a href="https://babeljs.io/docs/en/babel-register/#environment-variables">dossier temporaire</a>) ou de lancer le serveur Docusaurus (par exemple <code>yarn start</code> avec le paramètre d'environnement <code>BABEL_DISABLE_CACHE=1</code>.</p>
|
||||
|
@ -189,6 +192,6 @@ docusaurus 1.0.9 1.2.0 1.2.0 devDependencies https://github.com/facebook/doc
|
|||
apiKey: '3eb9507824b8be89e7a199ecaa1a9d2c',
|
||||
indexName: 'docusaurus',
|
||||
inputSelector: '#search_input_react',
|
||||
algoliaOptions: {"facetFilters":["language:fr","version:1.13.0"]}
|
||||
algoliaOptions: {"facetFilters":["language:fr","version:1.14.0"]}
|
||||
});
|
||||
</script></body></html>
|
Loading…
Add table
Add a link
Reference in a new issue