chore(docs): remove unused files from www directory

This commit is contained in:
Patrick
2022-12-02 12:47:05 -05:00
parent 65456252a1
commit 621a37cb68
6 changed files with 0 additions and 6092 deletions

7
www/.gitignore vendored
View File

@@ -1,7 +0,0 @@
build
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

Binary file not shown.

View File

@@ -1,3 +0,0 @@
https://www.docs.medusa-commerce.com/* https://www.docs.medusajs.com/:splat 301!
https://docs.medusa-commerce.com/* https://docs.medusajs.com/:splat 301!
https://tender-goodall-28ca2e.netlify.app/* https://www.docs.medusajs.com/:splat 301!

View File

@@ -1,43 +0,0 @@
#!/usr/bin/env node
const execa = require("execa")
const installDeps = async () => {
await execa("yarn", ["install"], {
cwd: "./reference",
stdio: "inherit",
})
await execa("yarn", ["install"], {
cwd: "./docs",
stdio: "inherit",
})
}
const buildGatsby = async () => {
await execa("./node_modules/.bin/gatsby", ["build"], {
cwd: "./reference",
stdio: "inherit",
})
}
const buildDocusaurus = async () => {
await execa("./node_modules/.bin/docusaurus", ["build"], {
cwd: "./docs",
stdio: "inherit",
})
}
const buildSite = async () => {
await installDeps()
await buildGatsby()
await buildDocusaurus()
await execa("rm", ["-rf", "build"])
await execa("mkdir", ["build"])
await execa("cp", ["_redirects", "build/_redirects"])
await execa("cp", ["-a", `reference/public/.`, `build/`])
await execa("cp", ["-a", `docs/build/.`, `build/`])
}
buildSite()

View File

@@ -1,11 +0,0 @@
{
"name": "www",
"version": "0.0.0",
"description": "Medusa documentation site",
"main": "index.js",
"license": "MIT",
"dependencies": {
"execa": "^5.1.1",
"gatsby-cli": "^3.11.0"
}
}

File diff suppressed because it is too large Load Diff