Skip to content

Commit 430b772

Browse files
chore: remove macOS references and point to new docsite (#1049)
## Description ### Why We have a new website at [microsoft.github.io/react-native-macos](microsoft.github.io/react-native-macos). Let's point the windows website there to better differentiate. ### Test Plan <img width="1850" alt="image" src="https://github.com/user-attachments/assets/9b51c5e1-bc70-4c35-9ca8-36495b96a9a8" /> ###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/react-native-windows-samples/pull/1049) --------- Co-authored-by: Jon Thysell <thysell@gmail.com>
1 parent fbcfa15 commit 430b772

File tree

9 files changed

+40
-148
lines changed

9 files changed

+40
-148
lines changed

.github/ISSUE_TEMPLATE/bug-report-documentation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
This repo contains the source for the [React Native for Windows + macOS website](https://aka.ms/reactnative), as well as various [code samples](https://github.com/microsoft/react-native-windows-samples/tree/main/samples) for those platforms. Issues on this repo should be constrained to problems/suggestions for the website and the samples. If you have an issue with the platforms themselves, you can file your issues here:
8+
This repo contains the source for the [React Native for Windows website](https://aka.ms/reactnative), as well as various [code samples](https://github.com/microsoft/react-native-windows-samples/tree/main/samples) for those platforms. Issues on this repo should be constrained to problems/suggestions for the website and the samples. If you have an issue with the platforms themselves, you can file your issues here:
99
- [React Native for Windows](https://github.com/microsoft/react-native-windows/issues/new/choose)
1010
- [React Native for macOS](https://github.com/microsoft/react-native-macos/issues/new/choose)
1111

.github/ISSUE_TEMPLATE/bug-report-sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: |
8-
This repo contains the source for the [React Native for Windows + macOS website](https://aka.ms/reactnative), as well as various [code samples](https://github.com/microsoft/react-native-windows-samples/tree/main/samples) for those platforms. Issues on this repo should be constrained to problems/suggestions for the website and the samples. If you have an issue with the platforms themselves, you can file your issues here:
8+
This repo contains the source for the [React Native for Windows website](https://aka.ms/reactnative), as well as various [code samples](https://github.com/microsoft/react-native-windows-samples/tree/main/samples) for those platforms. Issues on this repo should be constrained to problems/suggestions for the website and the samples. If you have an issue with the platforms themselves, you can file your issues here:
99
- [React Native for Windows](https://github.com/microsoft/react-native-windows/issues/new/choose)
1010
- [React Native for macOS](https://github.com/microsoft/react-native-macos/issues/new/choose)
1111

docs/hermes.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: hermes
3-
title: Hermes on Windows + macOS
3+
title: Hermes on Windows
44
---
55

66
![Architecture](https://img.shields.io/badge/architecture-new_&_old-green)
@@ -45,26 +45,6 @@ To revert back to using Chakra, set the `UseHermes` property to `false` in the `
4545

4646
- Hermes dll is not signed by Microsoft.
4747

48-
## Hermes on macOS
49-
50-
Hermes is available on React Native for macOS, provided you are using version 0.62 or higher.
51-
To learn how to upgrade to the latest version, check out the **Upgrading** section of the [macOS Getting Started guide](rnm-getting-started.md).
52-
53-
After you have upgraded to the latest version of React Native for macOS, install and add the following:
54-
55-
1. Install the npm package `yarn add 'hermes-engine-darwin@^0.4.3'`
56-
2. Add (or uncomment) the following pod dependencies to your macOS target in your `Podfile`:<br>
57-
58-
```
59-
pod 'React-Core/Hermes', :path => '../node_modules/react-native-macos/'
60-
pod 'hermes', :path => '../node_modules/hermes-engine-darwin'
61-
pod 'libevent', :podspec => '../node_modules/react-native-macos/third-party-podspecs/libevent.podspec'
62-
```
63-
64-
3. Run `pod install`
65-
66-
> Be sure to set your target's deployment target to at least 10.14 before running `pod install`
67-
6848
## Hermes Inspector
6949

7050
*React Native for Windows* with *Hermes engine* supports direct JavaScript runtime inspection using tools such as Chrome or [Edge `devtools`](https://docs.microsoft.com/microsoft-edge/devtools-guide-chromium/), [`VSCode` debugger](https://code.visualstudio.com/Docs/editor/debugging), [Flipper](https://fbflipper.com/) etc. by implementing an in-process Chrome Debug Protocol server.

docs/rnm-dependencies.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/rnm-getting-started.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

website/core/Footer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ class Footer extends React.Component {
2929
</a>
3030
</div>
3131
<div>
32-
<h5>React Native for Windows + macOS Docs</h5>
32+
<h5>React Native for Windows Docs</h5>
3333
<div style={{color: 'white', fontWeight: 500, fontSize: 16}}>
3434
<a href={this.props.config.baseUrl + "docs/getting-started"}>Get Started with Windows</a>
3535
</div>
36-
<div style={{color: 'white', fontWeight: 500, fontSize: 16}}>
37-
<a href={this.props.config.baseUrl + "docs/rnm-getting-started"}> Get Started with macOS</a>
38-
</div>
3936
<a href={this.props.config.baseUrl + "docs/parity-status"}>
4037
React Native Windows Components and APIs
4138
</a>

website/pages/en/index.js

Lines changed: 30 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,22 @@ const textContent = {
1313
windowsintro: `
1414
Take your apps across PC, Xbox, Surface Tablets, and dual-screens with our robust Windows extension to React Native.
1515
`,
16-
macintro: `
17-
Extend your desktop experience to more than just Windows!<br>
18-
Try out our fully supported macOS extension to React Native.
19-
`,
2016
intro: `
2117
## Bring your <u>[React Native]</u> apps to some of the most powerful devices out there
2218
2319
[React Native]: https://reactnative.dev/
2420
`,
2521
about: `
26-
**React Native for Windows + macOS brings React Native support for the
27-
[Windows SDK] as well as the [macOS 10.14 SDK]**. With this, you can use JavaScript to build native
22+
**React Native for Windows brings React Native support for the
23+
[Windows SDK]**. With this, you can use JavaScript to build native
2824
Windows apps for [all devices supported by Windows 10 and higher] including PCs,
29-
tablets, 2-in-1s, Xbox, Mixed reality devices, etc., as well as the macOS desktop and laptop ecosystems.
25+
tablets, 2-in-1s, Xbox, Mixed reality devices, etc.
3026
3127
Some build-time tools will send telemetry to Microsoft by default. No telemetry is collected or transmitted in the final app. You can prevent the telemetry from being sent by using the --no-telemetry command line option. See the --help command or README file for more details.
3228
3329
[React Native]: https://reactnative.dev/
3430
[React]: https://reactjs.org/
3531
[Windows SDK]: https://developer.microsoft.com/windows/downloads/windows-sdk/
36-
[macOS 10.14 SDK]: https://developer.apple.com/documentation/macos-release-notes/macos-mojave-10_14-release-notes
3732
[all devices supported by Windows 10 and higher]: https://docs.microsoft.com/windows/apps/get-started/?tabs=rnw
3833
`,
3934
resources: `
@@ -93,6 +88,16 @@ class Index extends React.Component {
9388
</a>
9489
);
9590

91+
const LinkButton = ({ link, text, secondary = false }) => (
92+
<a
93+
className={`ActionButton ${secondary ? 'secondary' : 'primary'}`}
94+
href={link}
95+
target="_self"
96+
>
97+
<b style={{ fontSize: secondary ? 20 : 24 }}>{text}</b>
98+
</a>
99+
);
100+
96101
const VideoCardItem = ({
97102
videolength,
98103
videotitle,
@@ -233,7 +238,7 @@ class Index extends React.Component {
233238
columnTwo={
234239
<React.Fragment>
235240
<h1 className="title">React Native for</h1>
236-
<p className="tagline">Windows + macOS</p>
241+
<p className="tagline">Windows</p>
237242
</React.Fragment>
238243
}
239244
/>
@@ -243,7 +248,7 @@ class Index extends React.Component {
243248
const About = () => (
244249
<Section background="light">
245250
<div className="content">
246-
<Heading text="About React Native for Windows + macOS" />
251+
<Heading text="About React Native for Windows" />
247252
<MarkdownBlock>{textContent.about}</MarkdownBlock>
248253
</div>
249254
</Section>
@@ -290,33 +295,21 @@ class Index extends React.Component {
290295
</Section>
291296
);
292297

293-
const MacIntro = () => (
294-
<Section background="light">
295-
<div className="content">
296-
<div className="row">
297-
<div className="column">
298-
<Heading text="Build for macOS" />
299-
<GitHubButtonmacOS />
300-
<div style={{ marginBottom: 35 }}>
301-
<MarkdownBlock>{textContent.macintro}</MarkdownBlock>
302-
</div>
303-
<GetStartedButton
304-
pageName="rnm-getting-started"
305-
platformName="macOS"
306-
/>
307-
</div>
308-
<div className="column">
309-
<img
310-
className="HomePageImage"
311-
style={{ maxWidth: "200%", marginTop: -70, marginBottom: -70 }}
312-
src="./img/homepage/native_and_js_mac_cropped.png"
313-
alt="rnw_cropped"
314-
/>
315-
</div>
316-
</div>
317-
</div>
318-
</Section>
298+
const MacLink = () => {
299+
return (
300+
<div style={{
301+
display: 'flex',
302+
justifyContent: 'center',
303+
margin: '3rem 0'
304+
}}>
305+
<LinkButton
306+
link="https://microsoft.github.io/react-native-macos"
307+
text="Interested in macOS?"
308+
secondary={true}
309+
/>
310+
</div>
319311
);
312+
}
320313

321314
const Resources = () => (
322315
<Section background="tint">
@@ -377,9 +370,9 @@ class Index extends React.Component {
377370
<HeaderHero />
378371
<Intro />
379372
<WindowsIntro />
380-
<MacIntro />
381373
{/*<Tutorials/>*/}
382374
<About />
375+
<MacLink />
383376
</div>
384377
);
385378
}

website/sidebars.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
"hermes",
3434
"NuGet"
3535
],
36-
"The Basics (MacOS)": [
37-
"rnm-getting-started",
38-
"rnm-dependencies"
39-
],
4036
"Troubleshooting": [
4137
"debugging-javascript",
4238
"metro-config-out-tree-platforms"

website/siteConfig.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const defaultVersionShown = "0.79";
1212
const repoUrl = "https://github.com/microsoft/react-native-windows";
1313

1414
const siteConfig = {
15-
title: "React Native for Windows + macOS",
16-
tagline: "Build native Windows & macOS apps with Javascript and React",
15+
title: "React Native for Windows",
16+
tagline: "Build native Windows apps with Javascript and React",
1717
url: "https://microsoft.github.io",
1818
baseUrl: "/react-native-windows/",
1919
repoUrl,
@@ -98,6 +98,10 @@ const siteConfig = {
9898
customFields: require("./showcaseApps.json"),
9999

100100
deletedDocs: {
101+
"0.80": [
102+
"rnm-dependencies",
103+
"rnm-getting-started"
104+
],
101105
"0.75": [
102106
"nuget-update",
103107
],

0 commit comments

Comments
 (0)