Skip to content

Commit

Permalink
Merge pull request #898 from pillar-markup/Pharo13
Browse files Browse the repository at this point in the history
Pharo13
  • Loading branch information
Ducasse authored Oct 27, 2024
2 parents 3fde7ec + e390aeb commit 911bf83
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ env:

on:
push:
branches: [ Pharo12 ]
branches: [ Pharo13 ]
pull_request:
branches: [ Pharo12 ]
branches: [ Pharo13 ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
smalltalk: [ Pharo64-12 ]
smalltalk: [ Pharo64-alpha ]
runs-on: ${{ matrix.os }}
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- uses: hpi-swa/setup-smalltalkCI@v1
id: smalltalkci
with:
smalltalk-image: Pharo64-12
smalltalk-image: Pharo64-alpha
- run: smalltalkci -s ${{ steps.smalltalkci.outputs.smalltalk-image }}
shell: bash
timeout-minutes: 15
2 changes: 1 addition & 1 deletion src/Microdown-HTMLExporter/MicHTMLStyler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ MicHTMLStyler >> frameworks [
{ #category : 'testing' }
MicHTMLStyler >> hasCssSelection [

^ self cssListPresenter isNotNil and: [ self cssListPresenter selection isEmpty not ]
^ self cssListPresenter isNotNil and: [ self cssListPresenter selection isNotEmpty ]
]

{ #category : 'testing' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,40 +24,10 @@ MicParsesAndRendersAllCommentsTest >> testCommentFromChunkReadStream [
]

{ #category : 'tests' }
MicParsesAndRendersAllCommentsTest >> testCommentFromConfigurationCommandLineHandler [
Microdown asRichText: MicRichTextComposer comment.
"Command line handler for dealing with Metacello configurations from the command line
Usage: config [--help] <repository url> [<configuration>] [--install[=<version>]] [--group=<group>] [--username=<username>] [--password=<password>][--no-quit][--no-save]
--help show this help message
--no-quit keep the image running after configuration install
--no-save Don't save the image after configuration install
<repository url> A Monticello repository name
<configuration> A valid Metacello Configuration name
<version> A valid version for the given configuration
<group> A valid Metacello group name
<username> An optional username to access the configuration's repository
<password> An optional password to access the configuration's repository
Examples:
# display this help message
pharo Pharo.image config
# list all configurations of a repository
pharo Pharo.image config $MC_REPOS_URL
# list all the available versions of a confgurtation
pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo
# install the stable version
pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install
#install a specific version '1.5'
pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5
#install a specific version '1.5' and only a specific group 'Tests'
pharo Pharo.image config $MC_REPOS_URL ConfigurationOfFoo --install=1.5 --group=Tests
"
MicParsesAndRendersAllCommentsTest >> testCommentFromFluidBuilder [
"Test that we do not break on empty code blocks"
Microdown asRichText: '```
```'
]

{ #category : 'tests' }
Expand Down
4 changes: 3 additions & 1 deletion src/Microdown-RichTextComposer/MicRichTextComposer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,9 @@ MicRichTextComposer >> visitPharoEvaluator: aScriptBlock [
canvas := oldCanvas.

codeText addAttribute: (MicRichTextDoIt new
actOnClickBlock: [ self class evaluate: script ];
actOnClickBlock: [ OpalCompiler new
source: script;
evaluate ];
yourself).

"this is a hack, because the align of the icon is attached to some top-left of the
Expand Down
7 changes: 7 additions & 0 deletions src/Microdown/MicAbstractBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ MicAbstractBlock >> computeNestedLevel [
^ 0
]

{ #category : 'properties' }
MicAbstractBlock >> hasProperty: aKey [
"Test if the property aKey is present."

^ self properties isNotNil and: [ self properties includesKey: aKey ]
]

{ #category : 'accessing' }
MicAbstractBlock >> indent [
^ parent indent
Expand Down
14 changes: 13 additions & 1 deletion src/Microdown/MicFigureBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,20 @@ MicFigureBlock class >> closingDelimiter [

{ #category : 'accessing' }
MicFigureBlock class >> openingDelimiter [

^ FigureNameOpenerMarkup
]

{ #category : 'testing' }
MicFigureBlock >> hasAnchor [

^ self anchor isNotNil
]

^ FigureNameOpenerMarkup
{ #category : 'testing' }
MicFigureBlock >> hasCaption [

^ captionElements isNotNil
]

{ #category : 'visiting' }
Expand Down

0 comments on commit 911bf83

Please sign in to comment.