Skip to content

Commit bf2a85c

Browse files
authored
repo sync
2 parents 6549b1e + c301ac4 commit bf2a85c

12 files changed

Lines changed: 11 additions & 45 deletions

File tree

.github/workflows/autoupdate-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
autoupdate:
88
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
99
name: autoupdate
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: docker://chinthakagodawita/autoupdate-action:v1
1313
env:

.github/workflows/codeql.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: CodeQL analysis
22

33
on:
44
push:
5-
branches: main
5+
branches:
6+
- main
67
pull_request:
7-
branches: main
8+
branches:
9+
- main
810
paths:
911
- '**/*.js'
1012
- '.github/workflows/codeql.yml'

includes/liquid-tags/link-with-short-title.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/liquid-tags/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Note that link tags will only render links that are available in the current pag
6363
| `{% homepage_link_with_intro /href %}` | The linked page's title and intro, with homepage-specific styling.
6464
| `{% link_in_list /href %}` | The linked page's title in a list item.
6565
| `{% topic_link_in_list /href %}` | The linked map topic's title in a list item (used in category TOCs).
66-
| `{% link_with_short_title /href %}` | The linked page's title, where the title is pulled from the page's `shortTitle` frontmatter.
6766
| `{% indented_data_reference site.data.foo.bar spaces=NUMBER %}` | The data reference with the specified number of spaces prepended to each line.
6867

6968
## Creating tags
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const Link = require('./link')
22

33
// For details, see class method in lib/liquid-tags/link.js
4-
module.exports = class HomepageLinkWithIntro extends Link {
5-
async render (context) {
6-
return super.parseTemplate(context)
7-
}
8-
}
4+
module.exports = class HomepageLinkWithIntro extends Link {}

lib/liquid-tags/link-in-list.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const Link = require('./link')
22

33
// For details, see class method in lib/liquid-tags/link.js
4-
module.exports = class LinkInList extends Link {
5-
async render (context) {
6-
return super.parseTemplate(context)
7-
}
8-
}
4+
module.exports = class LinkInList extends Link {}

lib/liquid-tags/link-with-intro.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const Link = require('./link')
22

33
// For details, see class method in lib/liquid-tags/link.js
4-
module.exports = class LinkWithIntro extends Link {
5-
async render (context) {
6-
return super.parseTemplate(context)
7-
}
8-
}
4+
module.exports = class LinkWithIntro extends Link {}

lib/liquid-tags/link-with-short-title.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

lib/liquid-tags/link.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = class Link extends LiquidTag {
2727
super(template, tagName, href.trim())
2828
}
2929

30-
async parseTemplate (context, opts = { shortTitle: false }) {
30+
async parseTemplate (context) {
3131
const template = await this.getTemplate()
3232

3333
const ctx = context.environments[0]
@@ -64,9 +64,7 @@ module.exports = class Link extends LiquidTag {
6464
}
6565

6666
// find and render the props
67-
const title = opts.shortTitle
68-
? await page.renderProp('shortTitle', ctx, { textOnly: true, encodeEntities: true })
69-
: await page.renderProp('title', ctx, { textOnly: true, encodeEntities: true })
67+
const title = await page.renderProp('title', ctx, { textOnly: true, encodeEntities: true })
7068

7169
// we want markdown in intros to be parsed, so we do not pass textOnly here
7270
const intro = await page.renderProp('intro', ctx, { unwrap: true })
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
const Link = require('./link')
22

33
// For details, see class method in lib/liquid-tags/link.js
4-
module.exports = class TopicLinkInList extends Link {
5-
async render (context) {
6-
return super.parseTemplate(context)
7-
}
8-
}
4+
module.exports = class TopicLinkInList extends Link {}

0 commit comments

Comments
 (0)