Commit Graph

79 Commits

Author SHA1 Message Date
Jun Wu
e27c1ce127 renderdag: make serde an optional dependency
Summary: It is only used by the website SVG renderer. Let's make it optional.

Reviewed By: muirdm

Differential Revision: D42590209

fbshipit-source-id: 17231e8468792dfb87cc2010d4b74257fb5257b6
2023-01-23 11:38:41 -08:00
dependabot[bot]
b3ec160c11 build(deps): bump json5 from 1.0.1 to 1.0.2 in /website (#381)
Summary:
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/json5/json5/releases">json5's releases</a>.</em></p>
<blockquote>
<h2>v1.0.2</h2>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to objects and arrays. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/199">https://github.com/facebook/sapling/issues/199</a>) This also fixes a prototype pollution vulnerability reported by Jonathan Gregson! (<a href="https://github-redirect.dependabot.com/json5/json5/issues/295">https://github.com/facebook/sapling/issues/295</a>). This has been backported to v1. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/298">https://github.com/facebook/sapling/issues/298</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/json5/json5/blob/main/CHANGELOG.md">json5's changelog</a>.</em></p>
<blockquote>
<h3>Unreleased [<a href="https://github.com/json5/json5/tree/main">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.3...HEAD">diff</a>]</h3>
<h3>v2.2.3 [<a href="https://github.com/json5/json5/tree/v2.2.3">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.2...v2.2.3">diff</a>]</h3>
<ul>
<li>Fix: json5@2.2.3 is now the 'latest' release according to npm instead of
v1.0.2. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/299">https://github.com/facebook/sapling/issues/299</a>)</li>
</ul>
<h3>v2.2.2 [<a href="https://github.com/json5/json5/tree/v2.2.2">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.1...v2.2.2">diff</a>]</h3>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to objects and arrays.
(<a href="https://github-redirect.dependabot.com/json5/json5/issues/199">https://github.com/facebook/sapling/issues/199</a>) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (<a href="https://github-redirect.dependabot.com/json5/json5/issues/295">https://github.com/facebook/sapling/issues/295</a>).</li>
</ul>
<h3>v2.2.1 [<a href="https://github.com/json5/json5/tree/v2.2.1">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.0...v2.2.1">diff</a>]</h3>
<ul>
<li>Fix: Removed dependence on minimist to patch CVE-2021-44906. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/266">https://github.com/facebook/sapling/issues/266</a>)</li>
</ul>
<h3>v2.2.0 [<a href="https://github.com/json5/json5/tree/v2.2.0">code</a>, <a href="https://github.com/json5/json5/compare/v2.1.3...v2.2.0">diff</a>]</h3>
<ul>
<li>New: Accurate and documented TypeScript declarations are now included. There
is no need to install <code>types/json5</code>. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/236">https://github.com/facebook/sapling/issues/236</a>, <a href="https://github-redirect.dependabot.com/json5/json5/issues/244">https://github.com/facebook/sapling/issues/244</a>)</li>
</ul>
<h3>v2.1.3 [<a href="https://github.com/json5/json5/tree/v2.1.3">code</a>, <a href="https://github.com/json5/json5/compare/v2.1.2...v2.1.3">diff</a>]</h3>
<ul>
<li>Fix: An out of memory bug when parsing numbers has been fixed. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/228">https://github.com/facebook/sapling/issues/228</a>,
<a href="https://github-redirect.dependabot.com/json5/json5/issues/229">https://github.com/facebook/sapling/issues/229</a>)</li>
</ul>
<h3>v2.1.2 [<a href="https://github.com/json5/json5/tree/v2.1.2">code</a>, <a href="https://github.com/json5/json5/compare/v2.1.1...v2.1.2">diff</a>]</h3>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="a62db1e51e"><code>a62db1e</code></a> 1.0.2</li>
<li><a href="e0c23fe458"><code>e0c23fe</code></a> docs: update CHANGELOG for v1.0.2</li>
<li><a href="62a6540840"><code>62a6540</code></a> fix: add <strong>proto</strong> to objects and arrays</li>
<li>See full diff in <a href="https://github.com/json5/json5/compare/v1.0.1...v1.0.2">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=json5&package-manager=npm_and_yarn&previous-version=1.0.1&new-version=1.0.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/sapling/network/alerts).

</details>

Pull Request resolved: https://github.com/facebook/sapling/pull/381

Reviewed By: evangrayk

Differential Revision: D42596265

Pulled By: bolinfest

fbshipit-source-id: 3060a9a9a05954dc7bfe5cacfabebaccf19abff8
2023-01-19 10:21:42 -08:00
kurtz.brandon@gmail.com
c0bcb6561e fix windows install codeblocks (#454)
Summary:
This removes the `ps>` prefix in the windows installation instructions. With `ps>` included, you can't directly copy and past the commands into powershell

Pull Request resolved: https://github.com/facebook/sapling/pull/454

Reviewed By: evangrayk

Differential Revision: D42594922

Pulled By: bolinfest

fbshipit-source-id: f798d9d74fdccfd088be9efb869857cfee8dead4
2023-01-19 10:11:59 -08:00
Lars Sjöström
eccfbab68c website: arch linux installation instructions (#473)
Summary:
now easy to install sapling on Arch Linux distros with AUR enabled.
https://aur.archlinux.org/packages/sapling-scm-bin

Pull Request resolved: https://github.com/facebook/sapling/pull/473

Reviewed By: evangrayk

Differential Revision: D42578726

Pulled By: sggutier

fbshipit-source-id: d8fdba7dadb4ddaba388d6afe09db05ca7567032
2023-01-18 10:31:36 -08:00
Anton Kastritskiy
144b60ee36 automatic update for docusaurus-plugin-internaldocs-fb@1.4.0
Reviewed By: bolinfest

Differential Revision: D42547373

fbshipit-source-id: 66429998bf2ae543c004aaf5ab9c1acca4fb90a5
2023-01-18 02:48:34 -08:00
m.hasnain.lakhani@gmail.com
a544e5d61c doc: fix the ulimit command (#376)
Summary:
Currently, the `ulimit -n 1048576 1048576` command accidently set file size (`-f`) to 1048576 (second argument), this is because the second argument does not have an option, then `-f` is assumed [1]

[1] bash ulimit.def: ec8113b986/builtins/ulimit.def (L64)

related issue: https://github.com/facebook/sapling/issues/353

Pull Request resolved: https://github.com/facebook/sapling/pull/376

Test Plan:
Before:

```
$ ulimit -a
-f: file size (blocks)              unlimited
-n: file descriptors                2048
...

$ ulimit -n 1048576 1048576

$ website ulimit -a
-f: file size (blocks)              1048576
-n: file descriptors                1048576
...
```

After:

```
$ ulimit -a
-f: file size (blocks)              unlimited
-n: file descriptors                2048
...

$ ulimit -n 1048576

$ website ulimit -a
-f: file size (blocks)              unlimited
-n: file descriptors                1048576
...

```

Reviewed By: bolinfest

Differential Revision: D42297341

Pulled By: zzl0

fbshipit-source-id: 5af52f4385a5d1557a3bba2403fa2c14cc484947
2022-12-30 19:19:46 -08:00
Michael Bolin
fb516c52b3 website: update docs for building on Windows
Summary:
I recently built and installed Sapling on a Windows machine
with few existing developer tools installed on it, so I wanted
to capture the `vcpkg` requirements that were not previously
documented.

Reviewed By: akushner

Differential Revision: D42232827

fbshipit-source-id: e6c9ce74b164b8f552188946a032852e06d03ec7
2022-12-27 10:28:30 -08:00
Michael Bolin
1d4bfcaabf Regenerate command docs for website (#351)
Summary:
Using the fix in D42230099, regenerate the command docs
for the website.

Pull Request resolved: https://github.com/facebook/sapling/pull/351

Test Plan:
Imported from OSS

Verify that `yarn build` works with the current `.md` file contents.

Reviewed By: zzl0

Differential Revision: D42230100

Pulled By: bolinfest

fbshipit-source-id: b9929bc1fdd4ede3dc032fdc310c4ca10e4a9194
2022-12-23 15:07:36 -08:00
Michael Bolin
f55b8b3894 temporary fix to website command codegen to work around escaping issue (#352)
Summary:
We currently have an issue where the generated docs for
`sl pr` produce a line that happens to start with the word `import`.
MDX tries to parse this line as an import statement.
As a quick fix so we can publish the website again,
introduce a simple escaping solution as described on:

https://stackoverflow.com/questions/61188612/escaping-import-and-react-html-to-display-as-text-in-mdx/74096776

Pull Request resolved: https://github.com/facebook/sapling/pull/352

Test Plan:
Imported from OSS

Verified in D42230100

Reviewed By: zzl0

Differential Revision: D42230099

Pulled By: bolinfest

fbshipit-source-id: af2f87e40ed7d71dac5eba7a054f026a1209ec62
2022-12-23 15:07:36 -08:00
Michael Bolin
0d29158be2 prefer sl clean to sl purge in the docs
Summary:
Note this fixes a broken link due to the `<Command>` change.

Fixes https://github.com/facebook/sapling/issues/335

Reviewed By: muirdm

Differential Revision: D42121142

fbshipit-source-id: 5a06757f1cc73c2b01cc9ddae1ed29bb9c9ea056
2022-12-19 09:20:44 -08:00
kurtz.brandon@gmail.com
a19989225f fix hg reference in readme to reference sl (#338)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/338

Reviewed By: mitrandir77

Differential Revision: D42121166

Pulled By: bolinfest

fbshipit-source-id: f3de24093206e008ac662789d227bd179d3b081f
2022-12-19 04:50:10 -08:00
Jun Wu
78ac4befd2 website: improve sapling output rendering
Summary:
- Use production config to pick up color and template definitions.
- Ensure `sl` command (shell function) is available.
- Specify a better-than-default colors.

Reviewed By: muirdm

Differential Revision: D42102950

fbshipit-source-id: 7ceef74f515ebb836c8b59af698cfa9794e046b4
2022-12-16 14:04:17 -08:00
Michael Bolin
56b5e3e180 remove default subcommand for sl pr but add s as alias for submit
Summary:
As we are going to add more flags for `sl pr submit`, it no longer
works well to use `submit` as the default command. Though we
add `s` as an alias for `submit` so it does not require much typing.

Reviewed By: zzl0

Differential Revision: D42047829

fbshipit-source-id: 782339a44ec5b548b6fc5e61a32f8fb05c0c8fe4
2022-12-14 22:49:34 -08:00
Saul Gutierrez
11583aacb6 add Homebrew to install instuctions
Summary: Adds installation instructions for installing from Homebrew-core on macOS so that users don't have to manually download our bottle. It also adds one additional installation method for non-Ubuntu Linux users.

Reviewed By: bolinfest

Differential Revision: D42008426

fbshipit-source-id: 76757f43739bca3133e3265d5bbe6175edbc9f11
2022-12-13 12:12:03 -08:00
Michael Bolin
26526efb78 minor grammatical fixes in VS Code extension docs (#323)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/323).
* __->__ https://github.com/facebook/sapling/issues/323

minor grammatical fixes in VS Code extension docs

Pull Request resolved: https://github.com/facebook/sapling/pull/323

Reviewed By: sggutier

Differential Revision: D41981831

Pulled By: bolinfest

fbshipit-source-id: 7b94a6f3f741b17ccafea938b8b388e8d54057c8
2022-12-13 07:15:56 -08:00
Michael Bolin
f6bef0c4c6 support signing Git commits using a GPG key
Summary:
This was requested for `sl pr` in
https://github.com/facebook/sapling/issues/218,
though this diff adds support for signing commits in general, in Sapling.
Here's how it works:

- `sl config --local gpg.key <KEY>` to specify your key
- Now `gitcommittext()` takes an optional `str` for the `gpgsigningkey` if `gpg.key` is set and `gpg.enabled` is `true` (which is the default).
- The text of the unsigned commit object is constructed and then signed using `gpg --status-fd=2 -bsau <KEY>` with the text passed via stdin.
- The resulting signature is embedded into the original text to sign it. Note that the original PGP key goes through some minor formatting (`\r` is removed; lines must start with a space to avoid a `\n\n` sequence) before it is embedded.

I documented things to the best of my knowledge in `eden/website/docs/git/signing.md`.

Follow-up items:

- Show signed status in smartlog?
- Update `sl ghstack` to honor signing configuration when running `git commit-tree`.
- Update `sl pr` to honor signing configuration when running `git commit-tree`.

Reviewed By: quark-zju

Differential Revision: D41778874

fbshipit-source-id: 5018a0d8bea1b5e9293c05954db65f35dd3c7aff
2022-12-12 14:26:34 -08:00
Jade Lovelace
500466bed0 website: Add a debugging guide pointing to the debug options (#287)
Summary:
![image](https://user-images.githubusercontent.com/6652840/204931166-61006e88-a178-4a72-ac7a-1ad75d372239.png)

Pull Request resolved: https://github.com/facebook/sapling/pull/287

Reviewed By: quark-zju

Differential Revision: D41972519

Pulled By: bolinfest

fbshipit-source-id: cbf494ba0989680941ddffaab178a95fcbb225eb
2022-12-12 13:24:17 -08:00
Michael Bolin
2857ac6b96 Add build instructions for Windows (#317)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/317).
* __->__ https://github.com/facebook/sapling/issues/317

Add build instructions for Windows

Fixes https://github.com/facebook/sapling/issues/316

Pull Request resolved: https://github.com/facebook/sapling/pull/317

Test Plan: http://localhost:3000/docs/introduction/installation

Reviewed By: sggutier

Differential Revision: D41917391

Pulled By: bolinfest

fbshipit-source-id: cabfa75c86fc55bd3c86190ee9406d0348d7d334
2022-12-11 09:33:38 -08:00
Michael Bolin
4ee418ca7a Provide more instruction for the README for the Sapling VS Code extension.
Summary:
When a user installs/browses the Sapling extension for VS Code,
they are presented with the `README.md`. Because this is likely
the user's entrypoint into the extension, this updates the README
with more guidance (and links) on how to get into the ISL experience.

Reviewed By: muirdm

Differential Revision: D41814194

fbshipit-source-id: 5c24d5e45655bde5db6287d1508e906b1c81e847
2022-12-07 17:39:48 -08:00
Michael Bolin
8fe9ce0c78 update ISL screenshots for website to show sl instead of hg
Summary:
Retake screenshots because old ones showed `hg goto --rev remote/main`
instead of a command starting with `sl`.

Reviewed By: ndmitchell

Differential Revision: D41815650

fbshipit-source-id: 63b1e7445041d9d08bcd6fa3ce3c469c93987393
2022-12-07 17:39:48 -08:00
Anton Kastritskiy
5febad8a26 automatic update for docusaurus-plugin-internaldocs-fb@1.2.1
Reviewed By: mweststrate

Differential Revision: D41801315

fbshipit-source-id: 097ade2639d3e215508e37114b4b9d27ae4fc3e9
2022-12-07 08:41:07 -08:00
Michael Bolin
84fe7cd5d7 more dependency updates based on yarn audit
Summary:
Updates:

- `loader-utils` 3.2.0 -> 3.2.1
- `react-scripts` 5.0.0 -> 5.0.1

Unfortunately, `yarn audit` still lists a bunch of stuff under
both `website/` and `addons/`, but it's tricky for us to fix
some of the downstream items, such as the use of
`nth-check@1.0.2`:

```
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ high          │ Inefficient Regular Expression Complexity in nth-check       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ nth-check                                                    │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.0.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ isl                                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ isl > react-scripts > svgr/webpack > svgr/plugin-svgo >    │
│               │ svgo > css-select > nth-check                                │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1070415                     │
└───────────────┴──────────────────────────────────────────────────────────────┘
```

Reviewed By: sggutier

Differential Revision: D41754723

fbshipit-source-id: 92e23d56ae28298397b98a1dd7b06c6ff063a5a8
2022-12-05 22:43:02 -08:00
Michael Bolin
2f713db62a npm security updates as recommended by GitHub dependabot
Summary:
This rolls the following PRs generated by dependabot into one:

https://github.com/facebook/sapling/pull/136
https://github.com/facebook/sapling/pull/137
https://github.com/facebook/sapling/pull/301

Reviewed By: sggutier

Differential Revision: D41752254

fbshipit-source-id: 3f21cc0cf57d29487d8bfe5222d11cd9e77c8db7
2022-12-05 18:35:41 -08:00
Shish
dff773ccfd make examples consistent (#269)
Summary:
Stack created with [Sapling]
* __->__ https://github.com/facebook/sapling/issues/269
* https://github.com/facebook/sapling/issues/267
* https://github.com/facebook/sapling/issues/266
* https://github.com/facebook/sapling/issues/264

[docs] make examples consistent

 both human understanding and syntax highlighting work better when the examples are consistent :)

Pull Request resolved: https://github.com/facebook/sapling/pull/269

Test Plan: manually looked through every page

Reviewed By: bolinfest

Differential Revision: D41544321

Pulled By: shish

fbshipit-source-id: aca88968b1c6cfc5340a004dd115e9eabbd4313c
2022-12-05 17:00:49 -08:00
Shish
2582363c7c Regenerate command auto-docs (#266)
Summary:
Stack created with [Sapling]
* https://github.com/facebook/sapling/issues/270
* https://github.com/facebook/sapling/issues/267
* __->__ https://github.com/facebook/sapling/issues/266
* https://github.com/facebook/sapling/issues/264

[docs] Regenerate command auto-docs

 I want to add syntax highlighting to the auto-generated docs, but they are out of date, so first let's update them

Pull Request resolved: https://github.com/facebook/sapling/pull/266

Reviewed By: bolinfest

Differential Revision: D41544316

Pulled By: shish

fbshipit-source-id: f6523275073add5a90982963089012e46f516d29
2022-12-05 12:56:27 -08:00
Michael Bolin
75b5eb5ef1 add Troubleshooting section for GitHub page (#294)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/294).
* __->__ https://github.com/facebook/sapling/issues/294

add Troubleshooting section for GitHub page

I just ran into an issue where `sl pr` failed to run because I
did not have `gh` configured as my Git credential helper.
It took me a bit of time to figure this out, so I thought I would
add it to the website, though the docs related to GitHub
integration are somewhat spread out, so I'm not sure whether this
is the best place for it. A dedicated Troubleshooting page might
be more appropriate, though such a page should probably have at
least two entries?

Though perhaps an even better solution is updating the code to
recognize this sort of failure and then suggest `gh auth setup-git`
directly when it happens.

Pull Request resolved: https://github.com/facebook/sapling/pull/294

Test Plan: http://localhost:3000/docs/git/intro

Reviewed By: akushner

Differential Revision: D41663482

Pulled By: bolinfest

fbshipit-source-id: ff957e298c143c62a2c05ea231eca8431011d106
2022-12-02 14:33:22 -08:00
Shish
12631d44ee document super smartlog (#270)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/270).
* __->__ https://github.com/facebook/sapling/issues/270

[docs] document super smartlog

 Being able to see PR status from the command line is my favourite feature, I don't want it to be buried in a footnote :)

Pull Request resolved: https://github.com/facebook/sapling/pull/270

Reviewed By: quark-zju

Differential Revision: D41548175

Pulled By: shish

fbshipit-source-id: 0200f499d7a39d48e9bb606ce61d584e539301fe
2022-12-01 14:43:14 -08:00
Shish
76898ce928 syntax-highlighting for smartlogs (#267)
Summary:
Stack created with [Sapling]
* https://github.com/facebook/sapling/issues/270
* __->__ https://github.com/facebook/sapling/issues/267
* https://github.com/facebook/sapling/issues/266
* https://github.com/facebook/sapling/issues/264

[docs] syntax-highlighting for smartlogs

This doesn't work in all cases (trying to come with with a regex that correctly handles practically arbitrary input never will) - but it seems to cover the majority of examples that are in the docs in practice.

Notable omissions:
- non-active local bookmarks aren't spotted
- no differentiation between draft and public commits

Example:
{F806537223}

Pull Request resolved: https://github.com/facebook/sapling/pull/267

Test Plan: Looked through all of the pages manually

Reviewed By: quark-zju

Differential Revision: D41544319

Pulled By: shish

fbshipit-source-id: 1a3bf691a5f53de90c4bb36a4c2613cf1a5edb0c
2022-12-01 14:43:14 -08:00
Shish
d496b5c44c add sl-shell-example syntax-highlighting language (#264)
Summary:
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/sapling/pull/264).
* __->__ https://github.com/facebook/sapling/issues/264

[docs] add sl-shell-example syntax-highlighting language

 Right now the example sl sessions have no hightlighting, or sometimes they pretend to be bash, which kind-of-half-works but also half doesn't work and is ugly (See the "Before" example - there is random highlighting for some numbers in the middle of command output, the ".." in "..." is randomly highlighted as a directory, etc)

This diff adds a new custom Prism language called "sl-shell-example" which does syntax highlighting specifically tailored for our example sessions with these main parts:

```
# comment
$ shell command
~/my/subdir $ shell command in a specific subdirectory
output
```
{F806536674}

(For the record, Prism already has a language called "shell-session", but that language doesn't support comments (which is something we make heavy use of), and also it tries to be clever by highlighting random words in the middle of shell commands (which is just distracting in the context of sapling docs))

Pull Request resolved: https://github.com/facebook/sapling/pull/264

Test Plan:
Before:
{F806536931}

After:
{F806537002}

Reviewed By: quark-zju

Differential Revision: D41522986

Pulled By: shish

fbshipit-source-id: fda9beb423a3c74d90c4cb387eb8cba3914a4693
2022-12-01 14:43:14 -08:00
Michael Bolin
caac87df17 update rawReleaseData.ts with new version info
Summary: Ran `./scripts/gen_release_data.py` to create this change.

Reviewed By: sggutier

Differential Revision: D41664247

fbshipit-source-id: beca259205880f16642a357a7a8bd7c22cfd94c4
2022-12-01 13:54:55 -08:00
Taylor Bolas
723e1537fb Improve the contrast of Get Started for the dark theme
Summary:
When using the dark theme the contrast of the Get Started button is not very good.
This diff sets the font color of Get Started to be black the whole time like how it is in the light theme. Currently in the dark theme the font color is white by default and turns black when hovered over.

Reviewed By: MichaelCuevas

Differential Revision: D41432365

fbshipit-source-id: 03fe09a1a151e74c9e86d2b133b863ff2a845ab9
2022-11-23 13:49:37 -08:00
Shish
923291eed8 Grammar fixes in organizational.md (#247)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/247

Reviewed By: sggutier

Differential Revision: D41502273

Pulled By: mzr

fbshipit-source-id: f267c7ee934982d02a34843ebfc65894f30de922
2022-11-23 12:07:04 -08:00
liulinboyi
be79ad0c06 feat: set the sl --version in the docs (#237)
Summary:
Get the windowsAsset version in the docs.

Pull Request resolved: https://github.com/facebook/sapling/pull/237

Reviewed By: bolinfest, zzl0

Differential Revision: D41476635

Pulled By: MichaelCuevas

fbshipit-source-id: 3769923de939a46b956bc7949a90af75a5989f0f
2022-11-22 11:28:28 -08:00
Michael Bolin
8c7a33bb60 update vendored rawReleaseData.ts with new version
Summary: Ran `./scripts/gen_release_data.py`.

Reviewed By: sggutier

Differential Revision: D41472030

fbshipit-source-id: 1d0f0edaa413186f76d8b9fbf100896fda4f7ecc
2022-11-22 08:01:11 -08:00
Paul Adams
fc72c57bdc fix typo in Manipulating your stack section (#240)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/240

Reviewed By: bolinfest

Differential Revision: D41453684

Pulled By: MichaelCuevas

fbshipit-source-id: a577aa5190658195dc700d9c1abeca87dd73263d
2022-11-21 16:55:51 -08:00
Michael Bolin
d59f952372 list Linux third on Installation since it currently has the fewest downloads (#245)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/245

Test Plan: http://localhost:3000/

Reviewed By: MichaelCuevas

Differential Revision: D41452967

Pulled By: bolinfest

fbshipit-source-id: b100be7831fee99c61bf74fedbe54b487a3454b7
2022-11-21 16:35:53 -08:00
Michael Bolin
596bc1c363 remove $ from some examples to make it easier to copy/paste (#244)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/244

Test Plan: http://localhost:3000/

Reviewed By: MichaelCuevas

Differential Revision: D41452964

Pulled By: bolinfest

fbshipit-source-id: 33caf34901cac31c43b0a90ab358b8099c9ba342
2022-11-21 16:35:53 -08:00
Michael Bolin
ff9a41ecbe make the Ubuntu installation instructions copy/pasteable (#243)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/243

Test Plan: http://localhost:3000/

Reviewed By: muirdm

Differential Revision: D41452966

Pulled By: bolinfest

fbshipit-source-id: 997a062ef56efe68232bb78fcf7bdbb7eb9593a9
2022-11-21 16:35:53 -08:00
Michael Bolin
ee268c34d4 include the name of the release in the data dump (#242)
Summary:
Pull Request resolved: https://github.com/facebook/sapling/pull/242

Ran `./scripts/gen_release_data.py` and verified
`rawReleaseData.ts` had the expected values.

Test Plan:
Ran the script and verified the `name`
field was included in the generated JSON.

Reviewed By: MichaelCuevas

Differential Revision: D41452965

Pulled By: bolinfest

fbshipit-source-id: c178bc6ad8ba572872a6f88b87f45e3b141bffab
2022-11-21 16:35:53 -08:00
Michael Bolin
3fefe3ae73 add appropriate defaults for gen_release_data.py flags (#241)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/241

Test Plan:
Ran the script with no args and verified that
the desired file was updated with the right info.

Reviewed By: muirdm

Differential Revision: D41452878

Pulled By: bolinfest

fbshipit-source-id: 296f8f0239f0de00ce14510d61a08870fa94eafe
2022-11-21 16:35:53 -08:00
Jun Wu
c63edcd541 website: update internals docs
Summary:
Minor adjustments:
- Fixes mistakes I made in those docs.
- Fix/add links.
- Clarify some differences with hg.

Reviewed By: muirdm

Differential Revision: D41393733

fbshipit-source-id: 726ee783723d0fa5b4c60376487ed93de3a520ab
2022-11-21 11:51:00 -08:00
Jun Wu
830ca4a73c website: "Foo Bar" => "Foo bar" title for more pages
Summary: Done by the script added in D41312633 (088f5efc9b).

Reviewed By: muirdm

Differential Revision: D41385131

fbshipit-source-id: e6bf1cd874bb870382fac147398a55f2851044d6
2022-11-21 11:51:00 -08:00
Sharath Chandra
1b5fb2af55 Fix typo. Unstach => Unstash (#238)
Summary:
Fix typo. `Unstach` => `Unstash`. In file `git-cheat-sheet.md`

Pull Request resolved: https://github.com/facebook/sapling/pull/238

Reviewed By: mitrandir77

Differential Revision: D41434044

Pulled By: mzr

fbshipit-source-id: 072ff85c1a26e2e5a5f3eadf7312305a81f6c642
2022-11-21 09:10:08 -08:00
mjarrowsmith4
b7636b8547 Fix typo (#232)
Summary:
This PR fixes a very small typo: `TEST_ENVRIONMENT` -> `TEST_ENVIRONMENT`

Pull Request resolved: https://github.com/facebook/sapling/pull/232

Reviewed By: yancouto

Differential Revision: D41430475

Pulled By: MichaelCuevas

fbshipit-source-id: 02ba09cd88529c36036a671eafdf57ff297c8411
2022-11-21 03:44:47 -08:00
Artur Carvalho
439c9b6a3f Improve text (#217)
Summary:
Hello there,

Small improvement to the text.

Pull Request resolved: https://github.com/facebook/sapling/pull/217

Reviewed By: MichaelCuevas

Differential Revision: D41424082

Pulled By: mzr

fbshipit-source-id: f4172fd7f963267feb991944c74fff42beb52385
2022-11-19 11:12:58 -08:00
Michael Bolin
a6be406c87 add backticks to make code samples more readable
Reviewed By: evangrayk

Differential Revision: D41420268

fbshipit-source-id: 624fad59306c236183ae7e01aa41426313cfbc89
2022-11-18 18:27:04 -08:00
Michael Bolin
7eb1191b20 increase column length so Prettier formats tables
Reviewed By: evangrayk

Differential Revision: D41420171

fbshipit-source-id: 8b93f1181c892a5abd1fcbe0d2f3d09ada3b202b
2022-11-18 18:27:04 -08:00
JT Smith
a6f9430448 Fix typo in docs (#164)
Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/164

Reviewed By: sggutier

Differential Revision: D41418591

Pulled By: bolinfest

fbshipit-source-id: 47108d92cff587cc0206e32db55b0b25fe353195
2022-11-18 16:51:46 -08:00
Michael Bolin
99445756be update the web documentation for sl ghstack
Summary:
The original docs were a bit sparse and I don't think
I was clear enough on the distinction between
"stock ghstack" and `sl ghstack`. Hopefully this clears
things up.

Reviewed By: evangrayk

Differential Revision: D41382719

fbshipit-source-id: 0b3aadf5a8615b0571be1a07db5d8d33099d1308
2022-11-18 12:28:25 -08:00
Waleed Khan
91bf257ec2 Adjust git reset --hard in Git cheat sheet (#152)
Summary:
Closes https://github.com/facebook/sapling/issues/150

Pull Request resolved: https://github.com/facebook/sapling/pull/152

Reviewed By: akushner

Differential Revision: D41347444

Pulled By: bolinfest

fbshipit-source-id: f1cfb714253fa32b76ea301babe8823dff15b23b
2022-11-17 11:54:20 -08:00