Skip to content

Commit

Permalink
Serve only docs from /docs for embedding in new website
Browse files Browse the repository at this point in the history
We want these docs to be available at the same web address as they have been, so we do not break links on the internet to our docs. However, we are planning to launch a new website with a different build from a different source repository. Rather than bring the legacy of this source and build, we want to try embedding the built static website from here into the new website.

We should clearly indicate to visitors of the old docs that these are archived and will not be updated. We can link to the new docs so when users arrive from old links they know how to get to the new docs.
  • Loading branch information
shakuzen committed Nov 16, 2023
1 parent 51d7451 commit 72b49b9
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodeLinker: node-modules
nodeLinker: node-modules
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "micrometer-docs",
"version": "0.1.2",
"homepage": "https://micrometer.io",
"homepage": "https://micrometer.io/docs",
"private": true,
"dependencies": {
"asciidoc-loader": "^0.2.0",
Expand Down
1 change: 0 additions & 1 deletion public/CNAME

This file was deleted.

1 change: 0 additions & 1 deletion public/Staticfile

This file was deleted.

6 changes: 3 additions & 3 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Route, Redirect, Switch } from 'react-router-dom';
import MyNavbar from '../MyNavbar';
import Footer from '../Footer';
import Home from '../Home';
import DocRoot from '../DocRoot';
import DocRoutes from '../DocRoutes';

export default function App() {
Expand All @@ -11,7 +11,7 @@ export default function App() {
<MyNavbar />

<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/docs" component={DocRoot} />

<Route path="/security-policy" component={() => {
window.location.href='https://tanzu.vmware.com/security';
Expand All @@ -21,7 +21,7 @@ export default function App() {

<DocRoutes/>

<Route path="**" render={() => <Redirect to="/" />} />
<Route path="**" render={() => <Redirect to="/docs" />} />
</Switch>

<div className="container-fluid" style={{ paddingRight: 0, paddingLeft: 0 }}>
Expand Down
60 changes: 0 additions & 60 deletions src/components/Home/index.js

This file was deleted.

75 changes: 42 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.3.2":
"@jridgewell/gen-mapping@npm:^0.3.0, @jridgewell/gen-mapping@npm:^0.3.2":
version: 0.3.3
resolution: "@jridgewell/gen-mapping@npm:0.3.3"
dependencies:
Expand All @@ -2178,6 +2178,16 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/source-map@npm:^0.3.2":
version: 0.3.5
resolution: "@jridgewell/source-map@npm:0.3.5"
dependencies:
"@jridgewell/gen-mapping": ^0.3.0
"@jridgewell/trace-mapping": ^0.3.9
checksum: 1ad4dec0bdafbade57920a50acec6634f88a0eb735851e0dda906fa9894e7f0549c492678aad1a10f8e144bfe87f238307bf2a914a1bc85b7781d345417e9f6f
languageName: node
linkType: hard

"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14":
version: 1.4.15
resolution: "@jridgewell/sourcemap-codec@npm:1.4.15"
Expand Down Expand Up @@ -3415,9 +3425,9 @@ __metadata:
linkType: hard

"ansi-regex@npm:^4.1.0":
version: 4.1.0
resolution: "ansi-regex@npm:4.1.0"
checksum: 97aa4659538d53e5e441f5ef2949a3cffcb838e57aeaad42c4194e9d7ddb37246a6526c4ca85d3940a9d1e19b11cc2e114530b54c9d700c8baf163c31779baf8
version: 4.1.1
resolution: "ansi-regex@npm:4.1.1"
checksum: b1a6ee44cb6ecdabaa770b2ed500542714d4395d71c7e5c25baa631f680fb2ad322eb9ba697548d498a6fd366949fc8b5bfcf48d49a32803611f648005b01888
languageName: node
linkType: hard

Expand Down Expand Up @@ -9572,13 +9582,11 @@ fsevents@^1.2.7:
linkType: hard

"json5@npm:^2.1.2":
version: 2.2.0
resolution: "json5@npm:2.2.0"
dependencies:
minimist: ^1.2.5
version: 2.2.2
resolution: "json5@npm:2.2.2"
bin:
json5: lib/cli.js
checksum: e88fc5274bb58fc99547baa777886b069d2dd96d9cfc4490b305fd16d711dabd5979e35a4f90873cefbeb552e216b041a304fe56702bedba76e19bc7845f208d
checksum: 9a878d66b72157b073cf0017f3e5d93ec209fa5943abcb38d37a54b208917c166bd473c26a24695e67a016ce65759aeb89946592991f8f9174fb96c8e2492683
languageName: node
linkType: hard

Expand Down Expand Up @@ -9782,13 +9790,13 @@ fsevents@^1.2.7:
linkType: hard

"loader-utils@npm:^2.0.0":
version: 2.0.2
resolution: "loader-utils@npm:2.0.2"
version: 2.0.3
resolution: "loader-utils@npm:2.0.3"
dependencies:
big.js: ^5.2.2
emojis-list: ^3.0.0
json5: ^2.1.2
checksum: 9078d1ed47cadc57f4c6ddbdb2add324ee7da544cea41de3b7f1128e8108fcd41cd3443a85b7ee8d7d8ac439148aa221922774efe4cf87506d4fb054d5889303
checksum: d055c61ce5927b64cb4af40218606603a7d3a39adb7b6eec116bb31d19203875950e478152dea056de404eced8e87e9bfd336ec636591ded040ea451f63c7d88
languageName: node
linkType: hard

Expand Down Expand Up @@ -10473,12 +10481,12 @@ fsevents@^1.2.7:
languageName: node
linkType: hard

"nanoid@npm:^3.1.30":
version: 3.2.0
resolution: "nanoid@npm:3.2.0"
"nanoid@npm:^3.3.6":
version: 3.3.7
resolution: "nanoid@npm:3.3.7"
bin:
nanoid: bin/nanoid.cjs
checksum: 3d1d5a69fea84e538057cf64106e713931c4ef32af344068ecff153ff91252f39b0f2b472e09b0dfff43ac3cf520c92938d90e6455121fe93976e23660f4fccc
checksum: d36c427e530713e4ac6567d488b489a36582ef89da1d6d4e3b87eded11eb10d7042a877958c6f104929809b2ab0bafa17652b076cdf84324aa75b30b722204f2
languageName: node
linkType: hard

Expand Down Expand Up @@ -12285,13 +12293,13 @@ fsevents@^1.2.7:
linkType: hard

"postcss@npm:^8.1.0":
version: 8.4.4
resolution: "postcss@npm:8.4.4"
version: 8.4.31
resolution: "postcss@npm:8.4.31"
dependencies:
nanoid: ^3.1.30
nanoid: ^3.3.6
picocolors: ^1.0.0
source-map-js: ^1.0.1
checksum: 6cf3fe0ecdf5a0d2aeb5e8404938c7eab968704e2e29dc5421e90b4014eb1975c1c0ad828425f2428807ef6e3fcfadd71f988ab55cb06c28ac2866f22403255b
source-map-js: ^1.0.2
checksum: 1d8611341b073143ad90486fcdfeab49edd243377b1f51834dc4f6d028e82ce5190e4f11bb2633276864503654fb7cab28e67abdc0fbf9d1f88cad4a0ff0beea
languageName: node
linkType: hard

Expand Down Expand Up @@ -13667,13 +13675,13 @@ resolve@^2.0.0-next.3:
linkType: hard

"semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.5":
version: 7.3.5
resolution: "semver@npm:7.3.5"
version: 7.5.2
resolution: "semver@npm:7.5.2"
dependencies:
lru-cache: ^6.0.0
bin:
semver: bin/semver.js
checksum: 5eafe6102bea2a7439897c1856362e31cc348ccf96efd455c8b5bc2c61e6f7e7b8250dc26b8828c1d76a56f818a7ee907a36ae9fb37a599d3d24609207001d60
checksum: 3fdf5d1e6f170fe8bcc41669e31787649af91af7f54f05c71d0865bb7aa27e8b92f68b3e6b582483e2c1c648008bc84249d2cd86301771fe5cbf7621d1fe5375
languageName: node
linkType: hard

Expand Down Expand Up @@ -14024,10 +14032,10 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"source-map-js@npm:^1.0.1":
version: 1.0.1
resolution: "source-map-js@npm:1.0.1"
checksum: 22606113d62bbd468712b0cb0c46e9a8629de7eb081049c62a04d977a211abafd7d61455617f8b78daba0b6c0c7e7c88f8c6b5aaeacffac0a6676ecf5caac5ce
"source-map-js@npm:^1.0.2":
version: 1.0.2
resolution: "source-map-js@npm:1.0.2"
checksum: c049a7fc4deb9a7e9b481ae3d424cc793cb4845daa690bc5a05d428bf41bf231ced49b4cf0c9e77f9d42fdb3d20d6187619fc586605f5eabe995a316da8d377c
languageName: node
linkType: hard

Expand Down Expand Up @@ -14075,7 +14083,7 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"source-map@npm:^0.7.3, source-map@npm:~0.7.2":
"source-map@npm:^0.7.3":
version: 0.7.3
resolution: "source-map@npm:0.7.3"
checksum: cd24efb3b8fa69b64bf28e3c1b1a500de77e84260c5b7f2b873f88284df17974157cc88d386ee9b6d081f08fdd8242f3fc05c953685a6ad81aad94c7393dedea
Expand Down Expand Up @@ -14718,11 +14726,12 @@ resolve@^2.0.0-next.3:
linkType: hard

"terser@npm:^5.3.4":
version: 5.10.0
resolution: "terser@npm:5.10.0"
version: 5.14.2
resolution: "terser@npm:5.14.2"
dependencies:
"@jridgewell/source-map": ^0.3.2
acorn: ^8.5.0
commander: ^2.20.0
source-map: ~0.7.2
source-map-support: ~0.5.20
peerDependencies:
acorn: ^8.5.0
Expand All @@ -14731,7 +14740,7 @@ resolve@^2.0.0-next.3:
optional: true
bin:
terser: bin/terser
checksum: 1080faeb6d5cd155bb39d9cc41d20a590eafc9869560d5285f255f6858604dcd135311e344188a106f87fedb12d096ad3799cfc2e65acd470b85d468b1c7bd4c
checksum: cabb50a640d6c2cfb351e4f43dc7bf7436f649755bb83eb78b2cacda426d5e0979bd44e6f92d713f3ca0f0866e322739b9ced888ebbce6508ad872d08de74fcc
languageName: node
linkType: hard

Expand Down

0 comments on commit 72b49b9

Please sign in to comment.