@@ -33,10 +33,6 @@ you probably don't need to build this site.
3333Often you can make changes using the GitHub UI.
3434We can stage the changes automatically in your pull request.
3535
36- > [ !IMPORTANT]
37- > If you are cloning this repository locally,
38- > follow the below instruction on cloning with its submodule.
39-
4036If your change involves code samples, adds/removes pages, or affects navigation,
4137do consider building and testing your work before submitting.
4238
@@ -66,49 +62,28 @@ and already the latest stable version:
6662dart --version
6763```
6864
69- ### Clone this repo and its submodules
70-
71- > [ !NOTE]
72- > This repository has git _ submodules_ , which affects how you clone it.
73- > The GitHub documentation has general help on
74- > [ forking] [ ] and [ cloning] [ ] repos.
65+ ### Clone this repo
7566
7667If you're not a member of the Dart organization,
77- we recommend you ** create a fork** of this repo under your own account,
68+ we recommend you [ create a fork] [ ] of this repo under your own account,
7869and then submit a PR from that fork.
7970
8071Once you have a fork (or you're a Dart org member),
81- _ choose one_ of the following submodule-cloning techniques:
82-
83- 1 . Clone the repo and its submodule at the same time
84- using the ` --recurse-submodules ` option:
85-
86- ``` terminal
87- git clone --recurse-submodules https://github.com/dart-lang/site-www.git
88- ```
89-
90- 2 . If you've already cloned the repo without its submodule,
91- then run this command from the root of the repository:
72+ clone the repository with ` git clone ` :
9273
93- ``` terminal
94- git submodule update --init --recursive
95- ```
74+ ``` bash
75+ git clone https://github.com/dart-lang/site-www.git
76+ ```
9677
97- > [ !NOTE]
98- > At any time during development
99- > you can use the ` git submodule ` command to refresh submodules:
100- >
101- > ``` terminal
102- > git pull && git submodule update --init --recursive
103- > ```
78+ [ create a fork ] : https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
10479
10580## Set up your local environment and serve changes
10681
10782Before you continue setting up the site infrastructure,
10883verify the correct version of Dart is set up and available by
10984following the instructions in [ Get the prerequisites] ( #get-the-prerequisites ) .
11085
111- 1. _Optional:_ After cloning the repo and its submodules ,
86+ 1 . _ Optional:_ After cloning the repo,
11287 create a branch for your changes:
11388
11489 ``` terminal
@@ -200,8 +175,6 @@ check out the [excerpt updater package documentation][].
200175[ Build Status SVG ] : https://github.com/dart-lang/site-www/workflows/build/badge.svg
201176[ OpenSSF Scorecard SVG ] : https://api.securityscorecards.dev/projects/github.com/dart-lang/site-www/badge
202177[ Scorecard Results ] : https://deps.dev/project/github/dart-lang%2Fsite-www
203- [ cloning ] : https://docs.github.com/repositories/creating-and-managing-repositories/cloning-a-repository
204178[ Jaspr ] : https://jaspr.site
205179[ Firebase ] : https://firebase.google.com/
206- [ forking ] : https://docs.github.com/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo
207180[ Repo on GitHub Actions ] : https://github.com/dart-lang/site-www/actions?query=workflow%3Abuild+branch%3Amain
0 commit comments