From 6aec81a5fcfed7aa5786464957524601959e49de Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Mon, 12 Feb 2024 10:35:26 -0500 Subject: [PATCH] Updated doc site --- docs/globals.css | 3 +- docs/next.config.js | 5 ++ .../getting-started/configuration.mdx | 53 -------------- .../documentation/getting-started/index.md | 69 +------------------ docs/theme.config.tsx | 4 +- 5 files changed, 12 insertions(+), 122 deletions(-) diff --git a/docs/globals.css b/docs/globals.css index 6a757250..1ccdc445 100644 --- a/docs/globals.css +++ b/docs/globals.css @@ -73,4 +73,5 @@ body { @apply bg-background text-foreground; } -} \ No newline at end of file +} + diff --git a/docs/next.config.js b/docs/next.config.js index 13cfd234..c15c3b37 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -18,6 +18,11 @@ module.exports = withNextra({ destination: "/documentation/getting-started", permanent: true, }, + { + source: "/docs/guides/faq", + destination: "/documentation/getting-started/faq", + permanent: true, + }, ]; }, }); diff --git a/docs/pages/documentation/getting-started/configuration.mdx b/docs/pages/documentation/getting-started/configuration.mdx index 1572c770..61e78655 100644 --- a/docs/pages/documentation/getting-started/configuration.mdx +++ b/docs/pages/documentation/getting-started/configuration.mdx @@ -52,59 +52,6 @@ Location where Flutter SDK versions will be stored. If nothing is set, the defau uses the latest version of the configurations in some situations. -### VS Code - -#### Option 1 - Automatic Switching (Recommended) - -You can add the version symlink for a dynamic switch. VS Code will always use the version selected within the project for all IDE tooling. Also, remove the Flutter SDK from search to make things easier. Just create a folder inside the project called `.vscode` and then create a file called `settings.json` and add the following file: - -```json title=".vscode/settings.json" -{ - "dart.flutterSdkPath": ".fvm/flutter_sdk", - // Remove .fvm files from search - "search.exclude": { - "**/.fvm": true - }, - // Remove from file watching - "files.watcherExclude": { - "**/.fvm": true - } -} -``` - -Execute `fvm use ` in the project root directory; If configured correctly, this will switch the version used on VSCode. If you are having issues, click on the Flutter version text on the status bar of VSCode, to show all the current SDKs installed on your machine. Select auto-detect, which will check `.vscode` dir inside your project and then change your Flutter SDK depending on the fvm config or manually select the Flutter SDK from fvm cache directory. - -#### Option 2 - View all SDKs (Manual switching) - -VSCode has the ability for you to switch between all cached Flutter SDKs using `Flutter: Change SDK`. - - - Use command `fvm list` to show you the cache path to the versions. - - -#### List all versions installed by FVM - -You can see all the versions installed by FVM in VS Code by just providing path to `versions` directory. In the following example path for macOS, replace `$USER` with your username: - -```json -{ - "dart.flutterSdkPaths": ["/Users/$USER/fvm/versions"] -} -``` - -Alternatively, you can specify only selected versions. The following snippet will cause VS Code to show only `stable` and `dev` versions of Flutter. - -```json -{ - "dart.flutterSdkPaths": [ - "/Users/$USER/fvm/versions/stable", - "/Users/$USER/fvm/versions/dev" - ] -} -``` - -To change current Flutter version open a project and select `Flutter: Change SDK` in the command palette. You should see all the versions as depicted in the following screenshot. - ### Android Studio 1. Go to `Languages & Frameworks > Flutter` or search for Flutter and change Flutter SDK path. diff --git a/docs/pages/documentation/getting-started/index.md b/docs/pages/documentation/getting-started/index.md index 4cabdd7e..b80daa0b 100644 --- a/docs/pages/documentation/getting-started/index.md +++ b/docs/pages/documentation/getting-started/index.md @@ -34,70 +34,7 @@ We follow these principles when building and adding new features to FVM. ## Contributors - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Leo Farias
Leo Farias

πŸ“– πŸ€” πŸ’» πŸ’‘ πŸ‘€ 🚧 πŸš‡
Ianko Leite
Ianko Leite

πŸ€”
Caijinglong
Caijinglong

πŸ’» πŸ€”
zmtzawqlp
zmtzawqlp

πŸ›
Peter Leibiger
Peter Leibiger

πŸ’» 🚧 πŸ’¬
Luca Panteghini
Luca Panteghini

πŸ“–
David Martos
David Martos

πŸ’» ⚠️ πŸ“–
Sven Jacobs
Sven Jacobs

πŸ’»
Wolfhard Prell
Wolfhard Prell

πŸ’»
Jaspreet Singh
Jaspreet Singh

πŸ€” πŸ’»
Matias de Andrea
Matias de Andrea

πŸ“–
znjameswu
znjameswu

πŸ›
Dominik Roszkowski
Dominik Roszkowski

πŸ“– πŸ“’
Suguru Kishimoto
Suguru Kishimoto

πŸ›
mx1up
mx1up

πŸ› πŸ’»
Alexandru Mariuti
Alexandru Mariuti

πŸ’»
Andrea Del Fante
Andrea Del Fante

πŸ€” πŸ’»
Pieter van Loon
Pieter van Loon

πŸ’» πŸ€”
Mr Yang
Mr Yang

πŸ’»
Krzysztof Bogacki
Krzysztof Bogacki

πŸ› πŸ’»
Sebastian Roth
Sebastian Roth

πŸ’» πŸ€”
Taras Mankovski
Taras Mankovski

πŸš‡ πŸ€”
Jan Mewes
Jan Mewes

πŸ“–
Allan Laal
Allan Laal

πŸ“–
Rob Halff
Rob Halff

πŸ“–
Nils Reichardt
Nils Reichardt

πŸš‡ πŸ’» πŸ“–
Juan Carlos RamΓ³n Condezo
Juan Carlos RamΓ³n Condezo

πŸ“– 🌍
zeshuaro
zeshuaro

πŸ’»
ziehlke
ziehlke

πŸ“–
Francisco PinzΓ³n
Francisco PinzΓ³n

πŸ“–
Thor Galle
Thor Galle

πŸ“–
Giuseppe Cianci
Giuseppe Cianci

πŸ“–
Shreyam Maity
Shreyam Maity

πŸ“–
Niklas Schulze
Niklas Schulze

πŸ’» πŸ€” πŸ›
Gonzalo Gauto
Gonzalo Gauto

πŸ€” πŸ’»
Etienne ThΓ©odore
Etienne ThΓ©odore

πŸ“–
John Brian
John Brian

πŸ“–
Bryan Oltman
Bryan Oltman

πŸ“–
Dovydas Stepona
Dovydas Stepona

πŸ“–
- - - - + + + diff --git a/docs/theme.config.tsx b/docs/theme.config.tsx index 98eb16ce..ad8e8e5f 100644 --- a/docs/theme.config.tsx +++ b/docs/theme.config.tsx @@ -108,11 +108,11 @@ const themeConfig = { }, primaryHue: { light: 200, - dark: 300, + dark: 550, }, primarySaturation: { light: 50, - dark: 40, + dark: 100, }, editLink: { text: "Edit this page on GitHub",