antlir icon indicating copy to clipboard operation
antlir copied to clipboard

Link to docs in README.md is broken

Open jazzdan opened this issue 11 months ago • 0 comments

It looks like the link to the docs in README.md is broken. It tries to link to https://facebookincubator.github.io but it seems like that redirects the engineering blog.

$ curl -vvv https://facebookincubator.github.io/antlir/docs
*   Trying 185.199.111.153:443...
* Connected to facebookincubator.github.io (185.199.111.153) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.io
*  start date: Feb 21 00:00:00 2023 GMT
*  expire date: Mar 20 23:59:59 2024 GMT
*  subjectAltName: host "facebookincubator.github.io" matched cert's "*.github.io"
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://facebookincubator.github.io/antlir/docs
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: facebookincubator.github.io]
* [HTTP/2] [1] [:path: /antlir/docs]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /antlir/docs HTTP/2
> Host: facebookincubator.github.io
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/2 404
< server: GitHub.com
< content-type: text/html; charset=utf-8
< permissions-policy: interest-cohort=()
< access-control-allow-origin: *
< etag: "6580605b-52b"
< x-proxy-cache: MISS
< x-github-request-id: 8FCC:171C:DD5926:1237D48:65EDFD66
< accept-ranges: bytes
< date: Sun, 10 Mar 2024 18:35:36 GMT
< via: 1.1 varnish
< age: 12
< x-served-by: cache-yvr1534-YVR
< x-cache: HIT
< x-cache-hits: 1
< x-timer: S1710095736.247765,VS0,VE1
< vary: Accept-Encoding
< x-fastly-request-id: 4dd7cd347ab8cc3c2c23e81710305f5cc8f5badd
< content-length: 1323
<
<html>
<head>
  <script type="text/javascript" charset="utf-8">
    // Map of projects that support handling 404s.
    // If a string is provided, we will assume that is a URL and redirect to it,
    // first replacing ${from} with the original URL.
    // eg foo: 'http://foo.com/index.php?show=404&from=${from}'
    //
    // Otherwise we will just redirect to facebookincubator.github.io/project/404.html?from=originalURL
    var supportedProjects = {
      'react-vr': 'http://facebook.github.io/react-vr/',
      'prophet': 'https://facebook.github.io/prophet/',
      'TextLayoutBuilder': 'https://facebook.github.io/TextLayoutBuilder/',
      'fbt': 'https://facebook.github.io/fbt/',
      'memlab': 'https://facebook.github.io/memlab/',
    };
    var project = window.location.pathname.split('/')[1];
    // Always fallback to regular redirect to code.facebook.com.
    var loc = 'https://code.facebook.com';
    if (supportedProjects.hasOwnProperty(project)) {
      if (typeof supportedProjects[project] === 'string') {
        loc = supportedProjects[project].replace('${from}', window.location.href)
      } else {
        loc = 'http://facebookincubator.github.io/' + project + '/404.html?from=' + window.location.href;
      }
    }
    window.location.href = loc;
  </script>
</head>
<body></body>
</html>
* Connection #0 to host facebookincubator.github.io left intact

jazzdan avatar Mar 10 '24 18:03 jazzdan