You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ghes-releases/lib/deprecation-steps.md
+23-8Lines changed: 23 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,15 +62,30 @@ All previously archived content lives in its own repository. For example, GHES 3
62
62
63
63
1. Update all translation directories to the latest `main` branch.
64
64
65
-
1. Hide search component temporarily while scraping docs in `src/search/components/Search.tsx`, by adding the `visually-hidden` class to the `form` element:
65
+
1. Hide search components temporarily while scraping docs by adding the `visually-hidden` class to the search components:
66
+
67
+
**In `src/search/components/input/SearchBarButton.tsx`**, wrap the return statement content:
66
68
67
69
```javascript
68
70
return (
69
-
<div data-testid="search">
70
-
<div className="position-relative z-2">
71
-
<form
72
-
role="search"
73
-
className="width-full d-flex visually-hidden"
71
+
<div className="visually-hidden">
72
+
{/* existing search button content */}
73
+
</div>
74
+
)
75
+
```
76
+
77
+
**In `src/search/components/input/SearchOverlayContainer.tsx`**, wrap the return statement content:
78
+
79
+
```javascript
80
+
if (isSearchOpen) {
81
+
return (
82
+
<div className="visually-hidden">
83
+
<SearchOverlay
84
+
// ... existing props
85
+
/>
86
+
</div>
87
+
)
88
+
}
74
89
```
75
90
76
91
1. Ensure your build is up to date:
@@ -93,7 +108,7 @@ All previously archived content lives in its own repository. For example, GHES 3
93
108
npm run deprecate-ghes-archive
94
109
```
95
110
96
-
1. Revert changes to `src/search/components/Search.tsx`.
111
+
1. Revert changes to `src/search/components/input/SearchBarButton.tsx` and `src/search/components/input/SearchOverlayContainer.tsx`.
97
112
98
113
1. Check in any change to `src/ghes-releases/lib/enterprise-dates.json`.
99
114
@@ -158,7 +173,7 @@ All previously archived content lives in its own repository. For example, GHES 3
158
173
1. Poke around several deprecated pages by navigating to `docs.github.com/enterprise/<DEPRECATED VERSION>`, and ensure that:
159
174
- Stylesheets are working properly
160
175
- Images are rendering properly
161
-
- The search functionality was disabled
176
+
- The search functionality was disabled during scraping
162
177
- Look at any console errors to ensure that no new unexpected errors were introduced. You can look at previous errors by viewing a previously completed deprecation page.
163
178
- You should see a banner on the top of every deprecated page with the date that the version was deprecated.
164
179
- You should see a banner at the top of every page for the oldes currently supported version with the date that it will be deprecated in the ~3 months.
0 commit comments