Skip to content

Commit d5f005b

Browse files
authored
Remove remnants of /guides directory (#6333)
Finalizes the work completed as part of #5767, removing the remaining mentions of the `/guides` directory. Adds a new [`https://dart.dev/docs`](https://dart-dev--pr6333-feat-remove-guides-directory-gf8u03iz.web.app/docs) page to act as an index into our documentation. Follow up PRs will adjust and expand the index. Closes #5767
1 parent 25e186b commit d5f005b

File tree

7 files changed

+11
-12
lines changed

7 files changed

+11
-12
lines changed

firebase.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@
151151
{ "source": "/docs/tutorials/shared-pkgs", "destination": "/tools/pub/packages", "type": 301 },
152152
{ "source": "/docs/tutorials/streams", "destination": "/libraries/async/using-streams", "type": 301 },
153153
{ "source": "/docs/tutorials{,/**}", "destination": "/tutorials", "type": 301 },
154-
{ "source": "/docs{,/**}", "destination": "/guides", "type": 301 },
155154
{ "source": "/downloads{,/**}", "destination": "/get-dart", "type": 301 },
156155
{ "source": "/eclipse{,/**}", "destination": "/tools#editors", "type": 301 },
157156
{ "source": "/editor{,/**}", "destination": "/tools#editors", "type": 301 },
@@ -179,7 +178,7 @@
179178
{ "source": "/go/flutter-upper-bound-deprecation", "destination": "https://github.com/flutter/flutter/issues/68143", "type": 301 },
180179
{ "source": "/go/macros", "destination": "/language/macros", "type": 301 },
181180
{ "source": "/go/pub-workspaces", "destination": "/tools/pub/workspaces", "type": 301 },
182-
{ "source": "/go/workspaces-stray-files", "destination": "/guides/workspaces#stray-files", "type": 301 },
181+
{ "source": "/go/workspaces-stray-files", "destination": "/tools/pub/workspaces#stray-files", "type": 301 },
183182
{ "source": "/go/non-promo-conflicting-getter", "destination": "/tools/non-promotion-reasons#getter-name", "type": 301 },
184183
{ "source": "/go/non-promo-conflicting-non-promotable-field", "destination": "/tools/non-promotion-reasons#field-name", "type": 301 },
185184
{ "source": "/go/non-promo-conflicting-noSuchMethod-forwarder", "destination": "/tools/non-promotion-reasons#nosuchmethod", "type": 301 },
@@ -209,6 +208,7 @@
209208
{ "source": "/go/unsound-null-safety", "destination": "/null-safety/unsound-null-safety", "type": 301 },
210209

211210
{ "source": "/googleapis", "destination": "https://github.com/dart-lang/googleapis", "type": 301 },
211+
{ "source": "/guides{,/**}", "destination": "/docs", "type": 301 },
212212
{ "source": "/guides/environment-declarations", "destination": "/libraries/core/environment-declarations", "type": 301 },
213213
{ "source": "/guides/get-started", "destination": "/overview", "type": 301 },
214214
{ "source": "/guides/google-apis", "destination": "/resources/google-apis", "type": 301 },
@@ -251,6 +251,7 @@
251251
{ "source": "/guides/platforms", "destination": "/overview#platform", "type": 301 },
252252
{ "source": "/guides/testing", "destination": "/tools/testing", "type": 301 },
253253
{ "source": "/guides/whats-new", "destination": "/resources/whats-new", "type": 301 },
254+
{ "source": "/guides/workspaces", "destination": "/tools/pub/workspaces", "type": 301 },
254255
{ "source": "/install", "destination": "/get-dart", "type": 301 },
255256
{ "source": "/install/**", "destination": "/get-dart", "type": 301 },
256257
{ "source": "/install/archive", "destination": "/get-dart/archive", "type": 301 },

src/_includes/navigation-main.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
{%- if page_url_path contains '/*/overview/' %} active {%- endif -%}">Overview</a>
1515
</li>
1616
<li class="mainnav__get-started">
17-
<a href="/guides" class="nav-link
18-
{%- if page_url_path contains '/*/guides/' or page_url_path contains '/*/language/' or page_url_path contains '/*/resources/' or page_url_path contains '/*/codelabs/' or page_url_path contains '/*/deprecated/' or page_url_path contains '/*/tools/' or page_url_path contains '/*/tutorials/' or page_url_path contains '/*/server/' or page_url_path contains '/*/web/' or page_url_path contains '/*/effective-dart/' or page_url_path contains '/*/libraries/' %} active {%- endif -%}">
17+
<a href="/docs" class="nav-link
18+
{%- if page_url_path contains '/*/docs/' or page_url_path contains '/*/language/' or page_url_path contains '/*/resources/' or page_url_path contains '/*/codelabs/' or page_url_path contains '/*/deprecated/' or page_url_path contains '/*/tools/' or page_url_path contains '/*/tutorials/' or page_url_path contains '/*/server/' or page_url_path contains '/*/web/' or page_url_path contains '/*/effective-dart/' or page_url_path contains '/*/libraries/' %} active {%- endif -%}">
1919
<span>Docs</span>
2020
</a>
2121
</li>

src/_includes/navigation-side.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a href="/get-dart" class="nav-link">Get Dart</a>
2020
</li>
2121
<li class="nav-item">
22-
<a href="/guides" class="nav-link">Docs</a>
22+
<a href="/docs" class="nav-link">Docs</a>
2323
</li>
2424
<li aria-hidden="true"><div class="sidebar-primary-divider"></div></li>
2525
</ul>

src/content/guides/index.md src/content/docs.md

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ To update these cards, edit src/_data/docs_cards.yml.
1818

1919
<div class="card-grid">
2020
{% for card in docs_cards -%}
21-
{% capture index0Modulo3 %}{{ forloop.index0 | modulo:3 }}{% endcapture %}
22-
{% capture indexModulo3 %}{{ forloop.index | modulo:3 }}{% endcapture %}
2321
<div class="card">
2422
<h2><a href="{{card.url}}">{{card.name}}</a></h2>
2523
<p>{{card.description}}</p>

src/content/libraries/dart-core.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ Support for weak references and finalizers was added in Dart 2.17.
10801080
[Uri]: {{site.dart-api}}/dart-core/Uri-class.html
10811081
[WeakReference]: {{site.dart-api}}/dart-core/WeakReference-class.html
10821082
[dart:core]: {{site.dart-api}}/dart-core/dart-core-library.html
1083-
[dart:ffi]: /guides/libraries/c-interop
1083+
[dart:ffi]: /interop/c-interop
10841084
[double]: {{site.dart-api}}/dart-core/double-class.html
10851085
[garbage-collected]: https://medium.com/flutter/flutter-dont-fear-the-garbage-collector-d69b3ff1ca30
10861086
[int]: {{site.dart-api}}/dart-core/int-class.html

src/content/resources/breaking-changes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ accounting for them before the 3.7 release.
111111
All usages should be migrated to the new `--page-width` option.
112112

113113
[new style]: {{site.repo.dart.org}}/dart_style/issues/1253
114-
[language version]: /guides/language/evolution#language-versioning
114+
[language version]: /resources/language/evolution#language-versioning
115115
[configure your analysis options]: /tools/analysis
116116
[`dart fix`]: /tools/dart-fix
117117

@@ -664,7 +664,7 @@ on all the changes in this section.
664664
[collection]: /resources/dart-3-migration#dart-collection
665665
[49529]: {{site.repo.dart.sdk}}/issues/49529
666666
[`DeferredLibrary`]: {{site.dart-api}}/stable/2.18.4/dart-async/DeferredLibrary-class.html
667-
[`deferred as`]: /guides/language/language-tour#lazily-loading-a-library
667+
[`deferred as`]: /language/libraries#lazily-loading-a-library
668668
[`MAX_USER_TAGS`]: {{site.dart-api}}/stable/dart-developer/UserTag/MAX_USER_TAGS-constant.html
669669
[`maxUserTags`]: {{site.dart-api}}/beta/2.19.0-255.2.beta/dart-developer/UserTag/maxUserTags-constant.html
670670
[50231]: {{site.repo.dart.sdk}}/issues/50231
@@ -1281,5 +1281,5 @@ other.
12811281
* Replaced pub's transformer-based build system with a [new build system][build system].
12821282

12831283
[30345]: {{site.repo.dart.sdk}}/issues/30345
1284-
[strong mode]: /guides/language/type-system
1284+
[strong mode]: /language/type-system
12851285
[build system]: {{site.repo.dart.org}}/build

src/content/resources/coming-from/swift-to-dart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,6 @@ multiplatform applications from a single codebase),
28282828
where you'll find in-depth information about the
28292829
language and practical ways of getting started.
28302830

2831-
[Dart]: /guides
2831+
[Dart]: /docs
28322832
[Flutter]: {{site.flutter-docs}}
28332833

0 commit comments

Comments
 (0)