Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase Spring 0.4.16 #10

Merged
merged 40 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7e3b08a
Improve breadcrumb styling
philwebb Mar 13, 2024
69bc17a
feat: 404 page
oodamien Mar 19, 2024
7194a25
fix: Replace "Github" with "GitHub"
izeye Mar 21, 2024
4a38911
feat: Update preview
oodamien Mar 22, 2024
5c59159
fix: Sidebar icon state
oodamien Mar 25, 2024
c679d25
fix: h2 styling
oodamien Mar 25, 2024
e0016e3
fix: Lint
oodamien Mar 25, 2024
443b5ea
Feat: improve nav
oodamien Mar 26, 2024
e576615
feat: Add redirect support
philwebb Mar 27, 2024
037a7f4
fix: Update author font size
oodamien Mar 27, 2024
e4f2e92
fix: Update sidebar style
oodamien Mar 27, 2024
db3a580
Add spring-boot to spring-projects.js
rwinch Mar 28, 2024
136be15
fix: Add scrollable feature to modal's left column
sbernardo Apr 16, 2024
b52a876
feat: Update Readme
oodamien Apr 16, 2024
ff21283
feat: image invert for dark mode
oodamien Apr 17, 2024
a061009
fix: Search link modal on Dark Mode
oodamien Apr 30, 2024
df61fd4
fix: Uppercase XML tab label
sdeleuze May 2, 2024
420af97
feat: Sticky Breadcrumbs
oodamien May 9, 2024
e93882d
feat: Sticky head sidebar
oodamien May 9, 2024
0b29699
Add log helper function
rwinch May 14, 2024
3301549
Write roles and target for nav-tree.hbs
rwinch May 14, 2024
de1a789
feat: Visual indicator for External link in the sidebar
philwebb May 16, 2024
6b3b45f
feat: Visually distinguish captions from floating text
oodamien May 16, 2024
6f7d82c
Add antora-ui-version meta element
rwinch May 16, 2024
bf50410
Fix external link styling in dark mode
philwebb May 17, 2024
cc45ff4
Fix Chrome rendering issue
philwebb May 17, 2024
deead96
Merge pull request #246 from philwebb/external-link-updates
rwinch May 17, 2024
01c24cc
fix: Code blocks & notes cover breadcrumbs
oodamien May 22, 2024
9a86365
fix: Visibility menu dropdown
oodamien May 24, 2024
b0f56f3
Rebase Spring 0.4.14
oodamien May 22, 2024
623eb3e
fix: Lint
oodamien May 27, 2024
c2bfb3f
fix: Variable CSS
oodamien May 27, 2024
1187c38
fix: Update breadcrumbs
oodamien May 28, 2024
0f37048
fix: Update anchor position
oodamien Jun 11, 2024
99629f7
feat: Group versions
oodamien Jun 14, 2024
114327f
feat: Update sidebar
oodamien Jun 14, 2024
196c293
fix: Build
oodamien Jun 17, 2024
f1642dd
Merge branch 'main' of https://github.com/spring-io/antora-ui-spring …
oodamien Jun 27, 2024
febec64
fix: Group versions
oodamien Jul 1, 2024
b1def7d
fix: Fix collapsed sidebar
oodamien Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 0 additions & 246 deletions README.adoc

This file was deleted.

113 changes: 113 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@

<p align="center">
<a href="https://micrometer.io/">
<img alt="Micrometer" src="https://micrometer.io/img/logo-no-title.svg" width="250" />
</a>
</p>

[![On Push](https://github.com/micrometer-metrics/antora-ui-micrometer/actions/workflows/push.yml/badge.svg?branch=main)](https://github.com/micrometer-metrics/antora-ui-micrometer/actions/workflows/push.yml)


This project generates and packages the static resources that Spring uses for document production.

This project is based on [Antora](https://antora.org).


## Development Quickstart

This section offers a basic tutorial to teach you how to preview it locally, and bundle it for use with Antora.
A more comprehensive tutorial can be found in the documentation at [docs.antora.org](https://docs.antora.org/).

### Prerequisites

To preview and bundle the Antora Spring UI, you need the following software on your computer:

* [git](https://git-scm.com/) (command: `git`)
* [Node.js](https://nodejs.org/) (commands: `node` and `npm`)
* [Gulp CLI](http://gulpjs.com/) (command: `gulp`)

### Preview the UI

The Spring Antora UI project is configured to preview offline.
The files in the `preview-src/` folder provide the sample content that allow you to see the UI in action.
In this folder, you'll primarily find pages written in AsciiDoc.
These pages provide a representative sample and kitchen sink of content from the real site.

To build the UI and preview it in a local web server, run the `preview` command:

```
npm install
gulp preview
```

You'll see a URL listed in the output of this command:

```
[12:00:00] Starting server...
[12:00:00] Server started http://localhost:5252
[12:00:00] Running server
```

Navigate to this URL to preview the site locally.

While this command is running, any changes you make to the source files will be instantly reflected in the browser.
This works by monitoring the project for changes, running the `preview:build` task if a change is detected, and sending the updates to the browser.

Press `Ctrl`+`C` to stop the preview server and end the continuous build.

### Package for Use with Antora

If you need to package the UI so you can use it to generate the documentation site locally, run the following command:

```
gulp bundle
```

If any errors are reported by lint, you'll need to fix them.

When the command completes successfully, the UI bundle will be available at `build/ui-bundle.zip`.
You can point Antora at this bundle using the `--ui-bundle-url` command-line option.

If you have the preview running, and you want to bundle without causing the preview to be clobbered, use:

```
gulp bundle:pack
```

The UI bundle will again be available at `build/ui-bundle.zip`.

## Extensions to the UI

### Related Documentation

The UI presents a list of related documentation and that documentation can be filtered using two attributes:

* page-related-doc-categories - The categories to be included in the related documentation
* page-related-doc-projects - The project ids to be included in the related documentation

For a complete listing of valid categories and ids view [related_projects.js](https://github.com/spring-io/antora-ui-spring/blob/main/src/helpers/related_projects.js)

The configuration is typically specified in asciidoc attributes section of the `antora-playbook.yml`:

```
asciidoc:
attributes:
# Include the projects with the security category
page-related-doc-categories: security
# Include the projects with ids framework and graphql
page-related-doc-projects: framework,graphql
```

The Related Documentation links to the `All Docs...` page.
To include this resource, ensure that the [antora-extensions](https://github.com/spring-io/antora-extensions/blob/main/README.adoc) is using 1.7.0+ and the [Static Page Extension](https://github.com/spring-io/antora-extensions/blob/main/README.adoc#static-page) is included.

## Authors

Development of Antora is led and sponsored by [OpenDevise Inc](https://opendevise.com/).

## Copyright and License

Copyright (C) 2017-present OpenDevise Inc. and the Antora Project.

Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
See [LICENSE](https://github.com/spring-io/antora-ui-spring/blob/feat/gh-226/LICENSE) to find the full license text.
4 changes: 3 additions & 1 deletion gulp.d/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ const postcssUrl = require('postcss-url')
const postcssVar = require('postcss-custom-properties')
const { Transform } = require('stream')
const map = (transform) => new Transform({ objectMode: true, transform })
const replace = require('gulp-replace')
const through = () => map((file, enc, next) => next(null, file))
const uglify = require('gulp-uglify')
const vfs = require('vinyl-fs')
const git = require('git-rev-sync')

module.exports = (src, dest, preview) => () => {
const opts = { base: src, cwd: src }
Expand Down Expand Up @@ -100,7 +102,7 @@ module.exports = (src, dest, preview) => () => {
),
vfs.src('helpers/*.js', opts),
vfs.src('layouts/*.hbs', opts),
vfs.src('partials/*.hbs', opts)
vfs.src('partials/*.hbs', opts).pipe(replace('@@antora-ui-version', git.isTagDirty() ? git.long() : git.tag()))
).pipe(vfs.dest(dest, { sourcemaps: sourcemaps && '.' }))
}

Expand Down
1 change: 1 addition & 0 deletions gulp.d/tasks/generate-octicons.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const icons = [
'info',
'law',
'light-bulb',
'link-external',
'moon',
'question',
'rocket',
Expand Down
Loading
Loading