Skip to content

Commit bbfb952

Browse files
committed
Document updating submodules
1 parent 416e37f commit bbfb952

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ docker is installed and the service is running.
5656
```sh
5757
git clone https://github.com/rust-lang/docs.rs.git docs.rs
5858
cd docs.rs
59+
git submodule update --init
5960
# Configure the default settings for external services
6061
cp .env.sample .env
6162
# Create the DOCSRS_PREFIX directory

build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ fn main() -> Result<()> {
7979
write_git_version(out_dir)?;
8080
compile_sass(out_dir)?;
8181
write_known_targets(out_dir)?;
82-
compile_syntax(out_dir)?;
82+
compile_syntax(out_dir).context(
83+
"\
84+
could not compile syntax files\n\n\
85+
Note: you may need to run `git submodule update --init`\
86+
",
87+
)?;
8388
Ok(())
8489
}
8590

0 commit comments

Comments
 (0)