Commit Graph
5 Commits
Author SHA1 Message Date
Paul Gottschling e3b1c2906e Replace Tile components with lists of links (#15266)
This change replaces all `Tile`s in the docs with lists of links. This
achieves two things:

- Helps us move toward a more text-focused look and feel for the docs.
  See gravitational/docs#93.
- Makes it easier to reorganize the docs. Currently, there's no linting
  for internal links in `Tile` hrefs (See gravitational/docs#100).

I used this script to edit each docs page, invoking the script for all
MDX files in docs/pages:

```
gawk '
    BEGIN{inopentag=0; indesc=0; desc=""; title=""; href="";}
    /<\/?TileSet>/{next;}
    /<Tile/ {
        inopentag=1;
    }
    inopentag==1 && /title=/{
        title=gensub(/.*title="([^"]+)".*/, "\\1", "g", $0);
    }
    inopentag==1 && /href=/{
        href=gensub(/.*href="([^"]+)".*/, "\\1", "g", $0);
    }
    inopentag==1 && />/ {
      inopentag=0;
      indesc=1;
      next;
    }
    indesc==1 && !/<\/Tile/{
        gsub(/(\n|\t|\s{2,})/," ",$0);
	desc=desc ($0);
	next;
    }
    /<\/Tile/{
        print "- [" title "](" href "):" desc;
	indesc=0;
	desc="";
	title="";
	href="";
	next;
    }
    inopentag==0 && indesc==0{ print $0 }

' $1 > "$1.tmp";
cat "$1.tmp" > "$1";
rm "$1.tmp";
```

I then cleaned up each file changed by the script and fixed any
incorrect URLs.
2022-08-10 22:27:31 +00:00
Paul Gottschling 93335094a8 Hide Server Access menu items based on scope (#12741)
See #11383

Help ensure that no visitor to the Teleport docs site sees content that
is irrelevant to their scope (e.g., Cloud, Open Source, or Enterprise) by
hiding scope-irrelevant content from the navigation menu and menu
pages.

For pages that aren't step-by-step guides and are meant to convey
general information about a Teleport edition, show these pages in all
scopes so users who are curious about another scope can get the
information they need.

This PR focuses on the Server Access section.

It also includes links to all Server Access guides in the intro page,
since only the PAM guide was included before.
2022-05-24 17:30:42 +00:00
Alexander Klizhentas e305a9d90b Sasha/fwd fixes (#7881)
* Fix broken links and variables

* Switch from iframes to videoBanner (#7865)

Signed-off-by: Alexander Klizhentas <klizhentas@gmail.com>
2021-08-11 16:05:41 -07:00
Ben Arent 492f4ec878 Teleport Server Access Intro Video (#7087) 2021-05-27 17:57:13 -07:00
inertial-frame a71c706c9b [v7.0] Port of 6.2 Server Access Section (#6936)
* docs: port of server access section

* docs: correct query

* docs: remove teleconsole
2021-05-26 21:36:48 -05:00