fish-shell/share/tools/web_config
Ilya Grigoriev f725cd402d Make help and fish_config work on Chrome OS
When `fish` is running in the Chrome OS Linux VM (Crostini),
both `help` and `fish_config` opened a "file not found"
page. That is because on Crostini, `BROWSER` is usually set to
`garcon-url-handler`, which opens URLs in the host OS Chrome
browser. That browser lacks access to the Linux file system.

This commit fixes these commands. `help` now opens the URL on
www.fishshell.com.  `fish_config` now opens the URL for the
server it starts. Previously, it opened a local file that
redirects to the same URL.

In the case of `help`, the situation could be improved further
by starting a web server to serve help. I don't know of another
way to access `/share/fish` from outside the VM without user
intervention, and I think that might be a part of the security
model for the Crostini VM.

It's hard to write a test for this. I checked that `help math`,
`python2 webconfig.py`, and `python3 webconfig.py` work on my
machine running in Crostini.
2021-03-07 09:42:41 +01:00
..
js use original theme repo URL 2021-01-04 13:54:58 +01:00
partials web_config/colors: Fix div tag 2020-12-10 16:27:00 +01:00
sample_prompts Run fish_indent on share/**.fish 2021-02-08 07:31:33 +01:00
delete.png Lossless recompress of images with pngcrush+zopfli 2016-06-18 10:03:26 -07:00
favicon.png Add favicon for web config 2015-07-12 15:06:56 -07:00
fishconfig.css webconfig: Remove more margins on small screens 2021-02-15 20:07:24 +01:00
index.html Webconfig: Let theme match help and fishshell.com 2020-12-04 17:08:45 +01:00
webconfig.py Make help and fish_config work on Chrome OS 2021-03-07 09:42:41 +01:00