зеркало из https://github.com/github/docs.git
da60aa51e1
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions * update references from context.enterpriseVersions -> context.enterpriseServerReleases * add test * also test oldest supported enterprise version in addition to the latest * Script to update not-free-pro-team conditionals (#16060) * script to update not-free-pro-team conditionals * change string to regex so we can do replace all * remove stray test.only * Update middleware/context.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/unit/page.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/unit/page.js Co-authored-by: James M. Greene <JamesMGreene@github.com> * Update tests/fixtures/page-versioned-for-all-enterprise-releases.md Co-authored-by: James M. Greene <JamesMGreene@github.com> Co-authored-by: James M. Greene <JamesMGreene@github.com> |
||
---|---|---|
.. | ||
liquid-tags | ||
README.md | ||
all-products-link.html | ||
article-version-switcher.html | ||
article.html | ||
breadcrumbs.html | ||
contribution.html | ||
deprecation-banner.html | ||
error-404-deprecation-message.html | ||
explorer.html | ||
featured-article.html | ||
featured-link.html | ||
featured-links.html | ||
footer.html | ||
graphql-arguments.html | ||
graphql-deprecation.html | ||
graphql-enum.html | ||
graphql-fields.html | ||
graphql-input-fields.html | ||
graphql-input-object.html | ||
graphql-interface.html | ||
graphql-mutation.html | ||
graphql-object.html | ||
graphql-preview.html | ||
graphql-query.html | ||
graphql-return-fields.html | ||
graphql-scalar.html | ||
graphql-union.html | ||
head.html | ||
header-notification.html | ||
header.html | ||
helpfulness.html | ||
homepage-version-switcher.html | ||
landing.html | ||
printer-icon.html | ||
rest_operation.html | ||
rest_operations_at_current_path.html | ||
rest_toc_item.html | ||
search-form.html | ||
sidebar-guides.html | ||
sidebar-homepage.html | ||
sidebar-specific-product.html | ||
sidebar.html | ||
support.html |
README.md
Includes
The files in this directory are "includes", snippets of HTML that can be reused in multiple layouts or pages. In Ruby on Rails parlance, these are called "partials".
Using Includes
This example injects the contents of includes/header.html
into the
page:
{% include header %}
Writing Includes
Includes must have a .html
extension.