utopia-project 0.34.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/context/getting-started.md +4 -2
- data/context/github-pages-integration.md +59 -9
- data/context/index.yaml +8 -6
- data/lib/utopia/project/version.rb +1 -1
- data/readme.md +3 -3
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce836aa13bef0faf0023d66ba3c5fcb0dca6447e872df581110221fe38ba5991
|
4
|
+
data.tar.gz: 191dba3b66205f9bf29b4095d53681a70c1a9db1d00698ebacc0a38878306295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c0377b952cd09fafb222248c25bb4d4e16a3a068ce40099c0106bd3ef623321fc5bbedb24e226e24d3ed2aaad13137f4d5d69093ea5520906b93cbd320e43a
|
7
|
+
data.tar.gz: fa29db6a3865b528aeef22bd187db14c9cd737efcd6f8fc202d47857e4b4d3454e19794937e40c1d4ec410010007e3bb2fe9a72c89eafe0da602fe382d63c144
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/context/getting-started.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
# Getting Started
|
2
2
|
|
3
|
-
This guide explains how to use `utopia-project`
|
3
|
+
This guide explains how to use `utopia-project` to add documentation to your project.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
7
|
+
Add the gem to your project:
|
8
8
|
|
9
9
|
~~~ bash
|
10
10
|
$ bundle add utopia-project
|
11
11
|
~~~
|
12
12
|
|
13
|
+
## Usage
|
14
|
+
|
13
15
|
## Start Local Server
|
14
16
|
|
15
17
|
Start the local server to preview documentation:
|
@@ -1,17 +1,67 @@
|
|
1
1
|
# GitHub Pages Integration
|
2
2
|
|
3
|
-
This guide shows you how to use `utopia-project` with GitHub Pages.
|
3
|
+
This guide shows you how to use `utopia-project` with GitHub Pages to deploy documentation.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Enable GitHub Pages
|
6
6
|
|
7
|
-
|
7
|
+
In your GitHub project settings, you will need to [enable GitHub Pages from a custom GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow). Then, use the workflow below to publish the documentation:
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
~~~
|
9
|
+
```yaml
|
10
|
+
name: Documentation
|
12
11
|
|
13
|
-
|
12
|
+
on:
|
13
|
+
push:
|
14
|
+
branches:
|
15
|
+
- main
|
14
16
|
|
15
|
-
|
17
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
|
18
|
+
permissions:
|
19
|
+
contents: read
|
20
|
+
pages: write
|
21
|
+
id-token: write
|
22
|
+
|
23
|
+
# Allow one concurrent deployment:
|
24
|
+
concurrency:
|
25
|
+
group: "pages"
|
26
|
+
cancel-in-progress: true
|
27
|
+
|
28
|
+
env:
|
29
|
+
BUNDLE_WITH: maintenance
|
30
|
+
|
31
|
+
jobs:
|
32
|
+
generate:
|
33
|
+
runs-on: ubuntu-latest
|
34
|
+
|
35
|
+
steps:
|
36
|
+
- uses: actions/checkout@v4
|
16
37
|
|
17
|
-
|
38
|
+
- uses: ruby/setup-ruby@v1
|
39
|
+
with:
|
40
|
+
ruby-version: ruby
|
41
|
+
bundler-cache: true
|
42
|
+
|
43
|
+
- name: Installing packages
|
44
|
+
run: sudo apt-get install wget
|
45
|
+
|
46
|
+
- name: Generate documentation
|
47
|
+
timeout-minutes: 5
|
48
|
+
run: bundle exec bake utopia:project:static --force no
|
49
|
+
|
50
|
+
- name: Upload documentation artifact
|
51
|
+
uses: actions/upload-pages-artifact@v3
|
52
|
+
with:
|
53
|
+
path: docs
|
54
|
+
|
55
|
+
deploy:
|
56
|
+
runs-on: ubuntu-latest
|
57
|
+
|
58
|
+
environment:
|
59
|
+
name: github-pages
|
60
|
+
url: ${{steps.deployment.outputs.page_url}}
|
61
|
+
|
62
|
+
needs: generate
|
63
|
+
steps:
|
64
|
+
- name: Deploy to GitHub Pages
|
65
|
+
id: deployment
|
66
|
+
uses: actions/deploy-pages@v4
|
67
|
+
```
|
data/context/index.yaml
CHANGED
@@ -9,11 +9,13 @@ metadata:
|
|
9
9
|
files:
|
10
10
|
- path: getting-started.md
|
11
11
|
title: Getting Started
|
12
|
-
description: This guide explains how to use `utopia-project`
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
description: This guide explains how to use `utopia-project` to add documentation
|
13
|
+
to your project.
|
14
|
+
- path: documentation-guidelines.md
|
15
|
+
title: Documentation Guides
|
16
|
+
description: This guide explains how to create and maintain documentation for your
|
17
|
+
project using `utopia-project`.
|
17
18
|
- path: github-pages-integration.md
|
18
19
|
title: GitHub Pages Integration
|
19
|
-
description: This guide shows you how to use `utopia-project` with GitHub Pages
|
20
|
+
description: This guide shows you how to use `utopia-project` with GitHub Pages
|
21
|
+
to deploy documentation.
|
data/readme.md
CHANGED
@@ -21,11 +21,11 @@ needs of my users.
|
|
21
21
|
|
22
22
|
Please see the [project documentation](https://socketry.github.io/utopia-project/) for more details.
|
23
23
|
|
24
|
-
- [Getting Started](https://socketry.github.io/utopia-project/guides/getting-started/index) - This guide explains how to use `utopia-project`
|
24
|
+
- [Getting Started](https://socketry.github.io/utopia-project/guides/getting-started/index) - This guide explains how to use `utopia-project` to add documentation to your project.
|
25
25
|
|
26
|
-
- [Documentation
|
26
|
+
- [Documentation Guides](https://socketry.github.io/utopia-project/guides/documentation-guidelines/index) - This guide explains how to create and maintain documentation for your project using `utopia-project`.
|
27
27
|
|
28
|
-
- [GitHub Pages Integration](https://socketry.github.io/utopia-project/guides/github-pages-integration/index) - This guide shows you how to use `utopia-project` with GitHub Pages.
|
28
|
+
- [GitHub Pages Integration](https://socketry.github.io/utopia-project/guides/github-pages-integration/index) - This guide shows you how to use `utopia-project` with GitHub Pages to deploy documentation.
|
29
29
|
|
30
30
|
## Releases
|
31
31
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|