From 8eb0faff4e61212d4b95c921d90f929f2f177b3b Mon Sep 17 00:00:00 2001
From: Lakshmi N <79132440+lakshmi930@users.noreply.github.com>
Date: Fri, 20 Oct 2023 17:17:09 +0400
Subject: [PATCH] fix(docs): remove docsify tabs (#52018)
---
docs/_theme.css | 8 ----
docs/how-to-setup-freecodecamp-locally.md | 30 +-----------
...o-setup-freecodecamp-mobile-app-locally.md | 47 +++++++------------
docs/index.html | 10 ----
docs/troubleshooting-development-issues.md | 16 +------
5 files changed, 19 insertions(+), 92 deletions(-)
diff --git a/docs/_theme.css b/docs/_theme.css
index 62e61485d0f..c2ba137f65b 100644
--- a/docs/_theme.css
+++ b/docs/_theme.css
@@ -504,11 +504,3 @@ body.close .github-corner {
text-align: left;
width: 10em;
}
-
-.docsify-tabs__tab:not(.docsify-tabs__tab--active) {
- color: var(--secondary-background) !important;
-}
-
-.docsify-tabs__tab:not(.docsify-tabs__tab--active):hover {
- cursor: pointer;
-}
diff --git a/docs/how-to-setup-freecodecamp-locally.md b/docs/how-to-setup-freecodecamp-locally.md
index 99d33e47623..c06645f9610 100644
--- a/docs/how-to-setup-freecodecamp-locally.md
+++ b/docs/how-to-setup-freecodecamp-locally.md
@@ -213,25 +213,13 @@ The default API keys and environment variables are stored in the file `sample.en
```console
# Create a copy of the "sample.env" and name it ".env".
-# Populate it with the necessary API keys and secrets:
+# Populate it with the necessary API keys and secrets
```
-
-
-#### **macOS/Linux**
-
```console
cp sample.env .env
```
-#### **Windows**
-
-```console
-copy sample.env .env
-```
-
-
-
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
> [!TIP]
@@ -256,26 +244,10 @@ Before you can run the application locally, you will need to start the MongoDB s
Start the MongoDB server in a separate terminal:
-
-
-#### **macOS/Linux**
-
```console
mongod
```
-#### **Windows**
-
-- On Windows, you must specify the full path to the `mongod` binary
-
-```console
-"C:\Program Files\MongoDB\Server\3.6\bin\mongod"
-```
-
-Make sure to replace `3.6` with the version you have installed
-
-
-
> [!TIP]
> You can avoid having to start MongoDB every time by installing it as a background service. You can [learn more about it in their documentation for your OS](https://docs.mongodb.com/manual/administration/install-community/)
diff --git a/docs/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/how-to-setup-freecodecamp-mobile-app-locally.md
index c4178265a2b..10651072ad7 100644
--- a/docs/how-to-setup-freecodecamp-mobile-app-locally.md
+++ b/docs/how-to-setup-freecodecamp-mobile-app-locally.md
@@ -138,8 +138,6 @@ The default API keys and environment variables are stored in the file `sample.en
# Populate it with the necessary API keys and secrets:
```
-
-
#### **macOS/Linux**
```console
@@ -152,8 +150,6 @@ cp sample.env .env
copy sample.env .env
```
-
-
The keys in the `.env` file are _not_ required to be changed to run the app locally. You can leave the default values copied over from `sample.env` as-is.
#### Step 2: Install dependencies
@@ -387,21 +383,17 @@ Follow these steps:
3. Make a copy of the `.env` file:
-
+ #### **macOS/Linux**
-#### **macOS/Linux**
+ ```console
+ cp sample.env .env
+ ```
-```console
-cp sample.env .env
-```
+ #### **Windows**
-#### **Windows**
-
-```console
-copy sample.env .env
-```
-
-
+ ```console
+ copy sample.env .env
+ ```
4. Install the dependencies for the freeCodeCamp repo:
@@ -417,21 +409,16 @@ copy sample.env .env
6. Copy the generated JSON file to the mobile app:
-
+ #### **macOS/Linux**
-#### **macOS/Linux**
+ ```console
+ cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
+ ```
-```console
-cp ./shared/config/curriculum.json ../mobile/mobile-app/curriculum.json
-```
-
-#### **Windows**
-
-```console
-copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
-```
-
-
+ #### **Windows**
+ ```console
+ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
+ ```
7. Change directory to the mobile app:
@@ -448,7 +435,7 @@ copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
9. Update the test file to use the challenge data JSON file:
```console
- sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
+ sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
```
10. Generate the challenge files:
diff --git a/docs/index.html b/docs/index.html
index a3a67fcb694..4226aed7c8b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -156,14 +156,6 @@
tag: 'remote-markdown-url'
},
- tabs: {
- persist: true, // default
- sync: true, // default
- theme: 'classic', // default
- tabComments: true, // default
- tabHeadings: true // default
- },
-
plugins: [
function (hook, vm) {
hook.beforeEach(function (markdown) {
@@ -262,8 +254,6 @@
-
-
diff --git a/docs/troubleshooting-development-issues.md b/docs/troubleshooting-development-issues.md
index fe1a7d6154f..6b19123520f 100644
--- a/docs/troubleshooting-development-issues.md
+++ b/docs/troubleshooting-development-issues.md
@@ -51,27 +51,13 @@ git clean -ifdX
If you can't sign in, and instead you see a banner with an error message that it will be reported to freeCodeCamp, please double-check that your local port `3000` is not in use by a different program.
-
-
-#### **macOS/Linux/WSL on Windows - From Terminal:**
-
+#### **From Terminal:**
```console
netstat -a | grep "3000"
tcp4 0 0 0.0.0.0:3000 DESKTOP LISTEN
```
-#### **On Windows - From Elevated PowerShell:**
-
-```powershell
-netstat -ab | Select-String "3000"
-
-TCP 0.0.0.0:3000 DESKTOP LISTENING
-```
-
-
-
----
## Issues Signing Out while Navigating