mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Replace http with https in docs
This commit is contained in:
parent
e217672c1a
commit
1097d3fe00
7 changed files with 48 additions and 48 deletions
|
@ -26,13 +26,13 @@ You can use and build a release build and a debug build in parallel.
|
|||
The servo binary is located in `target/debug/servo` (or `target/release/servo`). You can directly run this binary, but we recommend using `./mach` instead:
|
||||
|
||||
``` shell
|
||||
./mach run -d -- http://github.com
|
||||
./mach run -d -- https://github.com
|
||||
```
|
||||
|
||||
… is equivalent to:
|
||||
|
||||
``` shell
|
||||
./target/debug/servo http://github.com
|
||||
./target/debug/servo https://github.com
|
||||
```
|
||||
|
||||
If you build with `-d`, run with `-d`. If you build with `-r`, run with `-r`.
|
||||
|
@ -61,9 +61,9 @@ This guide only covers the most important options. Be sure to look at all the av
|
|||
Even if you have never seen any Rust code, it's not too hard to read Servo's code. But there are some basics things one must know:
|
||||
|
||||
- [Match](https://doc.rust-lang.org/book/first-edition/match.html) and [Patterns](https://doc.rust-lang.org/book/first-edition/patterns.html)
|
||||
- [Options](http://rustbyexample.com/std/option.html)
|
||||
- [Expression](http://rustbyexample.com/expression.html)
|
||||
- [Traits](http://rustbyexample.com/trait.html)
|
||||
- [Options](https://rustbyexample.com/std/option.html)
|
||||
- [Expression](https://rustbyexample.com/expression.html)
|
||||
- [Traits](https://rustbyexample.com/trait.html)
|
||||
- That doesn't sound important, but be sure to understand how `println!()` works, especially the [formatting traits](https://doc.rust-lang.org/std/fmt/#formatting-traits)
|
||||
|
||||
This won't be enough to do any serious work at first, but if you want to navigate the code and fix basic bugs, that should do it. It's a good starting point, and as you dig into Servo source code, you'll learn more.
|
||||
|
@ -71,7 +71,7 @@ This won't be enough to do any serious work at first, but if you want to navigat
|
|||
For more exhaustive documentation:
|
||||
|
||||
- [doc.rust-lang.org](https://doc.rust-lang.org)
|
||||
- [rust by example](http://rustbyexample.com)
|
||||
- [rust by example](https://rustbyexample.com)
|
||||
|
||||
## Cargo and Crates
|
||||
|
||||
|
@ -96,13 +96,13 @@ source = "git+https://github.com/servo/rust-stb-image#f4c5380cd586bfe16326e05e25
|
|||
|
||||
This file should not be edited by hand. In a normal Rust project, to update the git revision, you would use `cargo update -p stb_image`, but in Servo, use `./mach cargo-update -p stb_image`. Other arguments to cargo are also understood, e.g. use --precise '0.2.3' to update that crate to version 0.2.3.
|
||||
|
||||
See [Cargo's documentation about Cargo.toml and Cargo.lock files](http://doc.crates.io/guide.html#cargotoml-vs-cargolock).
|
||||
See [Cargo's documentation about Cargo.toml and Cargo.lock files](https://doc.crates.io/guide.html#cargotoml-vs-cargolock).
|
||||
|
||||
## Working on a Crate
|
||||
|
||||
As explained above, Servo depends on a lot of libraries, which makes it very modular. While working on a bug in Servo, you'll often end up in one of its dependencies. You will then want to compile your own version of the dependency (and maybe compiling against the HEAD of the library will fix the issue!).
|
||||
|
||||
For example, I'm trying to bring some cocoa events to Servo. The Servo window on Desktop is constructed with a library named [Glutin](https://github.com/tomaka/glutin). Glutin itself depends on a cocoa library named [cocoa-rs](http://github.com/servo/cocoa-rs). When building Servo, magically, all these dependencies are downloaded and built for you. But because I want to work on this cocoa event feature, I want Servo to use my own version of *glutin* and *cocoa-rs*.
|
||||
For example, I'm trying to bring some cocoa events to Servo. The Servo window on Desktop is constructed with a library named [Glutin](https://github.com/tomaka/glutin). Glutin itself depends on a cocoa library named [cocoa-rs](https://github.com/servo/cocoa-rs). When building Servo, magically, all these dependencies are downloaded and built for you. But because I want to work on this cocoa event feature, I want Servo to use my own version of *glutin* and *cocoa-rs*.
|
||||
|
||||
This is how my projects are laid out:
|
||||
|
||||
|
@ -132,7 +132,7 @@ If the output is in the format `https://github.com/rust-lang/crates.io-index#moz
|
|||
|
||||
Both will tell any cargo project to not use the online version of the dependency, but your local clone.
|
||||
|
||||
For more details about overriding dependencies, see [Cargo's documentation](http://doc.crates.io/specifying-dependencies.html#overriding-dependencies).
|
||||
For more details about overriding dependencies, see [Cargo's documentation](https://doc.crates.io/specifying-dependencies.html#overriding-dependencies).
|
||||
|
||||
## Debugging
|
||||
|
||||
|
@ -171,7 +171,7 @@ Using `RUST_LOG="debug"` is usually the very first thing you might want to do if
|
|||
RUST_LOG="debug" ./mach run -d -- -i -y 1 -t 1 /tmp/a.html 2>&1 | ts -s "%.S: " | tee /tmp/log.txt
|
||||
```
|
||||
|
||||
You can filter by crate or module, for example `RUST_LOG="layout::inline=debug" ./mach run …`. Check the [env_logger](http://doc.rust-lang.org/log/env_logger/index.html) documentation for more details.
|
||||
You can filter by crate or module, for example `RUST_LOG="layout::inline=debug" ./mach run …`. Check the [env_logger](https://doc.rust-lang.org/log/env_logger/index.html) documentation for more details.
|
||||
|
||||
Use `RUST_BACKTRACE=1` to dump the backtrace when Servo panics.
|
||||
|
||||
|
@ -214,7 +214,7 @@ And to search for a function's full name/regex:
|
|||
(gdb) info functions <name> #gdb
|
||||
```
|
||||
|
||||
See this [lldb tutorial](http://lldb.llvm.org/tutorial.html) and this [gdb tutorial](http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html).
|
||||
See this [lldb tutorial](https://lldb.llvm.org/tutorial.html) and this [gdb tutorial](http://www.unknownroad.com/rtfm/gdbtut/gdbtoc.html).
|
||||
|
||||
To inspect variables and you are new with lldb, we recommend using the `gui` mode (use left/right to expand variables):
|
||||
|
||||
|
@ -276,11 +276,11 @@ See the [debugging guide](./debugging.md) to get started in how to debug Servo.
|
|||
## Documentation:
|
||||
|
||||
- Servo's directory structure: [ORGANIZATION.md](./ORGANIZATION.md)
|
||||
- http://doc.servo.org/servo/index.html
|
||||
- https://doc.servo.org/servo/index.html
|
||||
- https://github.com/servo/servo/wiki
|
||||
- http://rustbyexample.com
|
||||
- https://rustbyexample.com
|
||||
- https://doc.rust-lang.org
|
||||
- Cargo & crates: http://doc.crates.io/guide.html
|
||||
- Cargo & crates: https://doc.crates.io/guide.html
|
||||
- mach help: `./mach --help`
|
||||
- servo options: `./mach run -- --help`
|
||||
- servo debug options: `./mach run -- --debug help`
|
||||
|
|
|
@ -134,25 +134,25 @@ pseudo-elements**.
|
|||
Feel free to ping @SimonSapin, @mbrubeck or @emilio on irc, and please mention
|
||||
that you didn't find it here so it can be added :)
|
||||
|
||||
[style-doc]: http://doc.servo.org/style/index.html
|
||||
[style-doc]: https://doc.servo.org/style/index.html
|
||||
[wiki-styling-overview]: https://github.com/servo/servo/wiki/Styling-overview
|
||||
[stylo]: https://public.etherpad-mozilla.org/p/stylo
|
||||
[selector-impl]: http://doc.servo.org/selectors/parser/trait.SelectorImpl.html
|
||||
[selector-impl-ext]: http://doc.servo.org/style/selector_parser/trait.SelectorImplExt.html
|
||||
[servo-selector-impl]: http://doc.servo.org/style/servo/selector_parser/struct.SelectorImpl.html
|
||||
[selector-impl]: https://doc.servo.org/selectors/parser/trait.SelectorImpl.html
|
||||
[selector-impl-ext]: https://doc.servo.org/style/selector_parser/trait.SelectorImplExt.html
|
||||
[servo-selector-impl]: https://doc.servo.org/style/servo/selector_parser/struct.SelectorImpl.html
|
||||
[tree-structural-pseudo-classes]: https://www.w3.org/TR/selectors4/#structural-pseudos
|
||||
[style-dom-traits]: http://doc.servo.org/style/dom/index.html
|
||||
[layout-wrapper]: http://doc.servo.org/layout/wrapper/index.html
|
||||
[pseudo-cascade-type]: http://doc.servo.org/style/selector_parser/enum.PseudoElementCascadeType.html
|
||||
[servo-pseudo-elements]: http://doc.servo.org/style/selector_parser/enum.PseudoElement.html
|
||||
[style-dom-traits]: https://doc.servo.org/style/dom/index.html
|
||||
[layout-wrapper]: https://doc.servo.org/layout/wrapper/index.html
|
||||
[pseudo-cascade-type]: https://doc.servo.org/style/selector_parser/enum.PseudoElementCascadeType.html
|
||||
[servo-pseudo-elements]: https://doc.servo.org/style/selector_parser/enum.PseudoElement.html
|
||||
[mdn-pseudo-before]: https://developer.mozilla.org/en/docs/Web/CSS/::before
|
||||
[mdn-pseudo-after]: https://developer.mozilla.org/en/docs/Web/CSS/::after
|
||||
[mdn-pseudo-selection]: https://developer.mozilla.org/en/docs/Web/CSS/::selection
|
||||
[stylist]: http://doc.servo.org/style/stylist/struct.Stylist.html
|
||||
[selectors-selectormap]: http://doc.servo.org/style/selector_map/struct.SelectorMap.html
|
||||
[selectors-rule]: http://doc.servo.org/style/stylist/struct.Rule.html
|
||||
[per-pseudo-selectormap]: http://doc.servo.org/style/selector_parser/struct.PerPseudoElementMap.html
|
||||
[per-origin-selectormap]: http://doc.servo.org/style/stylist/struct.PerOriginSelectorMap.html
|
||||
[stylist]: https://doc.servo.org/style/stylist/struct.Stylist.html
|
||||
[selectors-selectormap]: https://doc.servo.org/style/selector_map/struct.SelectorMap.html
|
||||
[selectors-rule]: https://doc.servo.org/style/stylist/struct.Rule.html
|
||||
[per-pseudo-selectormap]: https://doc.servo.org/style/selector_parser/struct.PerPseudoElementMap.html
|
||||
[per-origin-selectormap]: https://doc.servo.org/style/stylist/struct.PerOriginSelectorMap.html
|
||||
[docs-pipeline]: https://github.com/servo/servo/blob/master/docs/glossary.md#pipeline
|
||||
[properties-module]: http://doc.servo.org/style/properties/index.html
|
||||
[properties-cascade-fn]: http://doc.servo.org/style/properties/fn.cascade.html
|
||||
[properties-module]: https://doc.servo.org/style/properties/index.html
|
||||
[properties-cascade-fn]: https://doc.servo.org/style/properties/fn.cascade.html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue