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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6d7813076feeeb716ee8b2fed2db46d2d5522d63ef443632687aec95be009f9
4
- data.tar.gz: a77ff26f76a698e3d9c90b86270a4ee9fefeecd6108e9bade9c5d603ffe38081
3
+ metadata.gz: ce836aa13bef0faf0023d66ba3c5fcb0dca6447e872df581110221fe38ba5991
4
+ data.tar.gz: 191dba3b66205f9bf29b4095d53681a70c1a9db1d00698ebacc0a38878306295
5
5
  SHA512:
6
- metadata.gz: 33e47b9495910bd0e04b7b3f35f05f06de0e02c827dcb2c08cc8619b81b70e9986b288f4014a3c5fa544b38c97a21e3373287f49881ad67cedd868353b4e91cf
7
- data.tar.gz: aad59c90eb1f6556f6332f42afab40bc81031f2414df7fe83231a9bdb71fe2de7f6a4491aec52b53ab225049732c3d7cd0f92722ae4813331bebc29385c2be3c
6
+ metadata.gz: 89c0377b952cd09fafb222248c25bb4d4e16a3a068ce40099c0106bd3ef623321fc5bbedb24e226e24d3ed2aaad13137f4d5d69093ea5520906b93cbd320e43a
7
+ data.tar.gz: fa29db6a3865b528aeef22bd187db14c9cd737efcd6f8fc202d47857e4b4d3454e19794937e40c1d4ec410010007e3bb2fe9a72c89eafe0da602fe382d63c144
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,15 +1,17 @@
1
1
  # Getting Started
2
2
 
3
- This guide explains how to use `utopia-project` for your own project.
3
+ This guide explains how to use `utopia-project` to add documentation to your project.
4
4
 
5
5
  ## Installation
6
6
 
7
- Firstly, add the gem to your project:
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
- ## Static Site Generation
5
+ ## Enable GitHub Pages
6
6
 
7
- Once you are happy with your project's documentation, use this command to generate a static site:
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
- ~~~ bash
10
- $ bake utopia:project:static
11
- ~~~
9
+ ```yaml
10
+ name: Documentation
12
11
 
13
- This will generate a static copy of your documentation into `docs/` which is what is required by GitHub Pages.
12
+ on:
13
+ push:
14
+ branches:
15
+ - main
14
16
 
15
- ## Enable GitHub Pages
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
- In your GitHub project settings, you will need to [enable GitHub Pages served from `docs/`](https://help.github.com/en/github/working-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#choosing-a-publishing-source).
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` for your own project.
13
- - path: documentation-formatting.md
14
- title: Documentation Formatting
15
- description: This guide explains the conventions used by `utopia-project` when generating
16
- documentation for your project.
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.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Utopia
7
7
  module Project
8
- VERSION = "0.34.1"
8
+ VERSION = "0.35.0"
9
9
  end
10
10
  end
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` for your own 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 Formatting](https://socketry.github.io/utopia-project/guides/documentation-formatting/index) - This guide explains the conventions used by `utopia-project` when generating documentation for your project.
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.1
4
+ version: 0.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file