1
0
mirror of synced 2025-12-26 05:02:55 -05:00
Files
docs/layouts/release-notes.html
Jason Etcovitch cc719ffb6f Render Enterprise release notes on docs.github.com (#16367)
* Create basic layout

* Create stubbed out release note YAML

* Get a real implementation going

* Simplify using site-data

* Add a real page to send from render-page.js

* Use array of patches

* Render patches

* Add sidebar and breadcrumbs

* Reverse order

* Add date

* Tweak labels

* Redirect to entweb for missing versions

* Render patch.intro

* Move to separate files for patches

* Show support for RC versions

* Improve some comments

* Sticky headers!

* Remove a console log

* Improve example formatting

* Add a link on /admin

* Add a schema and test

* Move to /index.md, add version_num filter

* Improve layout

* Use <details>

* Placeholder more realistic notes

* Don't require links in index pages

* Remove admin/index link for now

* Remove unused frontmatter field

* Add a test for middleware

* Fix remaining YAML file to test CI

* Update 2-rc.yml

* Don't call it RC

* Just push

* Make a main a div

* Fix a borked class

* Lint YAML files

* Improve Download link

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Improve check order

* Move to contextualizers

* Use alternative version thing

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Move back to `release-notes.md`

* Use version for anchor IDs

* Undo category-pages test change

* Fix borked details layout in Chrome

* Improve mobile setup

* Render markdown in note tags

* Use allVersions[currentVersion] again

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Undo change to extended-markdown

* Add whitespace so it renders markdown bits

* Remove 2-22 files

* Add check for any release notes

* Fix the failing tests

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-20 13:33:11 -05:00

94 lines
3.4 KiB
HTML

{% assign product = siteTree[currentLanguage][currentVersion].products[currentProduct] %}
<!doctype html>
<html lang="{{currentLanguage}}">
{% include head %}
<body class="d-lg-flex">
{% include sidebar %}
<main class="width-full">
{% include header %}
{% include deprecation-banner %}
<div class="container-xl px-3 px-md-6 my-4 my-lg-4 markdown-body">
<div class="d-lg-flex flex-justify-between">
<div class="d-block d-lg-none">{% include article-version-switcher %}</div>
<div class="d-flex flex-items-center" style="height: 39px;">
{% include breadcrumbs %}
</div>
<div class="d-none d-lg-block">{% include article-version-switcher %}</div>
</div>
<article class="mt-2 d-flex gutter">
<div class="col-12 col-md-10">
<header>
<h1>{{ allVersions[currentVersion].versionTitle }}</h1>
</header>
{% for patch in releaseNotes %}
<details id="{{ patch.version }}" class="details-reset mb-3" {% if forloop.first %}open{% endif %}>
<summary class="position-sticky top-0 bg-white pb-2 d-flex flex-items-center flex-justify-between border-bottom">
<h2 class="d-flex flex-items-center border-bottom-0">
{{ patch.version }}
{% if patch.release_candidate %}
<span class="IssueLabel bg-orange text-white mx-2">Release Candidate</span>
{% endif %}
</h2>
<div>
<span class="text-gray-light text-mono text-small" style="margin-left: auto">{{ patch.date | date: "%B %d, %Y" }}</span>
<div class="mt-1 d-flex flex-items-center f5">
<a href="https://enterprise.github.com/releases/{{ patch.version }}/download">
Download GHES {{ patch.version }}
</a>
<button class="js-print btn-link ml-6">
Print
</button>
</div>
</div>
</summary>
<p>{{ patch.intro }}</p>
{% for section in patch.sortedNotes %}
<div class="py-6 border-bottom d-block d-md-flex flex-items-baseline">
<div class="mr-2 flex-shrink-0 mb-3">
{% include 'release-notes-category-label' %}
</div>
<ul class="flex-auto container-xl">
{% for note in section.notes %}
{% if note.note and note.note != '<p>n/a</p>' %}
<li>
{{ note.note }}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endfor %}
</details>
{% endfor %}
</div>
<aside class="col-2 d-none d-md-block no-print">
<h3 class="f5">Patch versions</h3>
<ul>
{% for patch in releaseNotes %}
<li><a href="#{{ patch.version }}">{{ patch.version }}</a></li>
{% endfor %}
</ul>
</aside>
</article>
</div>
{% include support %}
{% include small-footer %}
</main>
</body>
</html>