forked from gcotelli/RenoirSt
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from ba-st/pharo_10
Add Pharo 10
- Loading branch information
Showing
22 changed files
with
226 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.st linguist-language=Smalltalk | ||
*.st eol=lf | ||
*.st text diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# RenoirSt Documentation | ||
|
||
A DSL enabling programmatic cascading style sheet generation for Pharo Smalltalk. | ||
|
||
To learn about the project, [install it](how-to/how-to-load-in-pharo.md) and | ||
follow the [tutorial](tutorial/Tutorial-TOC.md). | ||
|
||
--- | ||
|
||
To use the project as a dependency of your project, take a look at: | ||
|
||
- [How to use RenoirSt as a dependency](how-to/how-to-use-as-dependency-in-pharo.md) | ||
- [Baseline groups reference](reference/Baseline-groups.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# How to load RenoirSt in a Pharo image | ||
|
||
## Pharo 6.1 or greater | ||
|
||
### Using Metacello | ||
|
||
1. Download a [Pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open a Playground | ||
4. Evaluate: | ||
|
||
```smalltalk | ||
Metacello new | ||
baseline: 'RenoirSt'; | ||
repository: 'github://ba-st/RenoirSt:release-candidate'; | ||
load: 'Development'. | ||
``` | ||
> Change `release-candidate` to some released version if you want a pinned version | ||
### Using Iceberg | ||
1. Download [pharo VM and image](https://pharo.org/download) | ||
2. Open your Pharo image | ||
3. Open Iceberg | ||
4. Click the *Add* repository button | ||
5. Select *Clone from github.com* and enter `ba-st` as owner name and `RenoirSt` | ||
as project name | ||
6. Click *Ok* | ||
7. Select the repository in the main Iceberg window | ||
8. Open the contextual menu and select | ||
*Metacello -> Install baseline of RenoirSt ...* | ||
9. Type `Development` and click *Ok* | ||
> After Iceberg cloned a repository, it will be checked-out at the default | ||
> branch (in this case `release-candidate`). If you want to work on a different | ||
> branch or commit, perform the checkout before the baseline installation step. | ||
## Pharo 5 | ||
- Open a Playground and evaluate: | ||
```smalltalk | ||
Metacello new | ||
baseline: 'RenoirSt'; | ||
repository: 'github://ba-st/RenoirSt:stable-pharo-50/source'; | ||
load | ||
``` | ||
|
||
or | ||
|
||
- Load it using the Catalog Browser | ||
|
||
## Pharo 4 | ||
|
||
- Open a Playground and evaluate: | ||
|
||
```smalltalk | ||
Metacello new | ||
baseline: 'RenoirSt'; | ||
repository: 'github://ba-st/RenoirSt:stable-pharo-40/source'; | ||
load | ||
``` | ||
|
||
or | ||
|
||
- Load it using the Configuration Browser | ||
|
||
## Pharo 3 (this version is stalled at 1.4.0) | ||
|
||
- Load it using the Configuration Browser | ||
|
||
or | ||
|
||
- Open a workspace and evaluate: | ||
|
||
```smalltalk | ||
Gofer it | ||
url: 'http://smalltalkhub.com/mc/gcotelli/RenoirSt/main'; | ||
configurationOf: 'RenoirSt'; | ||
loadStable | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# How to use RenoirSt as dependency in a Pharo product | ||
|
||
In order to include **RenoirSt** as part of your project, you should reference | ||
the package in your product baseline: | ||
|
||
1. Define the RenoirSt repository and version to be used, and the [baseline groups](../reference/Baseline-groups.md) | ||
you want to depend on (usually it will be `Deployment`). | ||
|
||
If you're unsure on what to depend use the *Dependency Analyzer* | ||
tool to choose an appropriate group including the packages you need. | ||
|
||
2. Create a method like this one in the baseline class of your product: | ||
|
||
```smalltalk | ||
setUpDependencies: spec | ||
spec | ||
baseline: 'RenoirSt' | ||
with: [ spec repository: 'github://github://ba-st/RenoirSt:v{XX}' ]; | ||
project: 'RenoirSt-Deployment' | ||
copyFrom: 'RenoirSt' with: [ spec loads: 'Deployment' ] | ||
``` | ||
This will create `RenoirSt-Deployment` as a valid target that can be used | ||
as requirement in your own packages. | ||
> Replace `{XX}` with the version you want to depend on | ||
3. Use the new loading target as a requirement on your packages. For example: | ||
```smalltalk | ||
baseline: spec | ||
<baseline> | ||
spec | ||
for: #pharo | ||
do: [ | ||
self setUpDependencies: spec. | ||
spec | ||
package: 'My-Package' | ||
with: [ spec requires: #('RenoirSt-Deployment') ] ] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Baseline Groups | ||
|
||
RenoirSt includes the following groups in its Baseline that can be used as | ||
loading targets: | ||
|
||
- `Deployment` will load all the packages needed in a deployed application | ||
- `Tests` will load the test cases | ||
- `Tools` will load the extensions to the SUnit framework and development tools | ||
(inspector and spotter extensions) | ||
- `CI` is the group loaded in the continuous integration setup | ||
- `Development` will load all the needed packages to develop and contribute to | ||
the project | ||
- `Deployment-Seaside-Extensions` will load all the packages needed in a deployed | ||
application including the Javascript extensions | ||
- `Development-Seaside-Extensions` will load all the needed packages to develop | ||
and contribute to the project including the Javascript extensions |
Oops, something went wrong.