Commit Graph

26 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Mateusz Kwapich
b0f8508602 s/sl checkout/sl goto/g
Summary:
We're still using old name for goto command in docs.

Closes: #168

Reviewed By: bolinfest, zzl0

Differential Revision: D41342092

fbshipit-source-id: dd883b7c31e7834f2cfaf7afd5938ea3c61c2389
2022-11-16 12:22:50 -08:00
Jun Wu
e039492a69 website: edit git-cheat-sheet
Summary:
Mention how to push to a branch, add a remote, and pull from a non-default
remote. Correct inaccurate git commands in clone/push/pull section.

Change "Foo Bar" to "Foo bar" based on style guide.

Reviewed By: DurhamG

Differential Revision: D41310894

fbshipit-source-id: 977f96b66499fd7d1a125d41a81a9d5e264a5cd9
2022-11-15 11:02:57 -08:00
Jun Wu
088f5efc9b website: use Foo bar title
Summary:
Per style guide [1].

Ran script in docs/ except for docs/commands/:

  import glob
  import re

  capwords = set("ReviewStack Code ISL Watchman Git Sapling GitHub Mercurial Apple Intel Windows EdenFS I Python Unicode".split())

  for path in glob.glob('**/*.md', recursive=True):
      with open(path, 'rb') as f:
          content = f.read().decode()
          newlines = []
          skip = False
          for line in content.splitlines():
              if line.startswith('```'):
                  skip = not skip
              if line.startswith('#') and not skip:
                  words = line.split(' ')
                  newwords = words[:2]
                  for word in words[2:]:
                      if re.sub('[.()]', '', word) not in capwords and word[1:] == word[1:].lower() and not newwords[-1].endswith("."):
                          # change to lowercase
                          word = word[:1].lower() + word[1:]
                      newwords.append(word)
                  line = ' '.join(newwords)
              newlines.append(line)
          newcontent = '\n'.join(newlines) + "\n"
      if newcontent != content:
          print(f'editing {path}')
          with open(path, 'wb') as f:
              f.write(newcontent.encode())

Manually updated two places using `A/B` like `Files/Trees` in scale/axes.

[1]: https://developers.google.com/style/headings

Reviewed By: sggutier

Differential Revision: D41312633

fbshipit-source-id: 9b45df8b120765d1875c3782e6f9d6e5ddb97af0
2022-11-15 11:02:57 -08:00
Mark Juggurnauth-Thomas
aaaa8275d7 docs: minor fixes and rewording
Summary: Fix a few typos and reword a few sections to make them flow better.

Reviewed By: akushner

Differential Revision: D41294506

fbshipit-source-id: eeabfb357de23aef896445f4a1056c0e10618c7b
2022-11-15 10:47:29 -08:00
Mateusz Kwapich
dd98b87254 warn about macOS file limit
Summary: The default limit on my macbook air is 256 - that's not enough for clones of larger repos to work.

Reviewed By: DurhamG

Differential Revision: D41308172

fbshipit-source-id: 27972c9f8d66d5236b69f5e65f66eb2e472f52b3
2022-11-15 08:37:25 -08:00
Michael Bolin
74e4f292ae prefer -O to -o when using curl
Summary: Follow-up from D41306411 (ce3095ed47).

Reviewed By: DurhamG

Differential Revision: D41307219

fbshipit-source-id: bcabe12cbbf930d031bc9e8490606f94c2a0a347
2022-11-15 07:57:16 -08:00
Michael Bolin
ce3095ed47 tighten up installation instructions for macOS
Summary:
Changes:

- specify `--output` when using `curl`
- separate commands into separate blocks and drop `$` for easier copy-and-paste
- add `./` in front of filename so brew knows right away that it is a file and not a formula name

Also updated the release info:

```
./scripts/gen_release_data.py --repo facebook/sapling --out ./src/rawReleaseData.ts
```

Reviewed By: mitrandir77

Differential Revision: D41306411

fbshipit-source-id: 1327d2404f48812c18b844eb5b622acc69eab5e8
2022-11-15 07:21:34 -08:00
Facebook Community Bot
5076656c62 Re-sync with internal repository 2022-11-15 00:48:09 -08:00