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

Add GitBridge to Microdown #925

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/tests-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
name: ${{ matrix.smalltalk }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Setup smalltalkCI
uses: hpi-swa/setup-smalltalkCI@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: hpi-swa/setup-smalltalkCI@v1
id: smalltalkci
with:
Expand Down
14 changes: 11 additions & 3 deletions src/BaselineOfMicrodown/BaselineOfMicrodown.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ BaselineOfMicrodown >> baseline: spec [
<baseline>
spec for: #common do: [

self xmlParserHtml: spec.
self mustache: spec.
self
xmlParserHtml: spec;
mustache: spec;
gitBridge: spec.
" I disable this because against all my best effort, I cannot avoid the fucking pop up to raise
even if I unload all the packages. I get the Microdown-RichTextComposer in conflict."

Expand All @@ -29,7 +31,7 @@ BaselineOfMicrodown >> baseline: spec [
spec postLoadDoIt: #'postload:package:'.

spec
package: #Microdown;
package: #Microdown with: [ spec requires: #( #GitBridge ) ];
package: #'Microdown-Tests'
with: [ spec requires: #( #Microdown ) ];

Expand Down Expand Up @@ -135,6 +137,12 @@ BaselineOfMicrodown >> baseline: spec [
group: 'All' with: #('Core' #'Microdown-BrowserExtensions' 'Tests' 'Extensions' 'Microdown-Pharo-Tools' 'RichText') ]
]

{ #category : 'baselines' }
BaselineOfMicrodown >> gitBridge: spec [

spec baseline: 'GitBridge' with: [ spec repository: 'github://jecisc/GitBridge:v1.x.x/src' ]
]

{ #category : 'baselines' }
BaselineOfMicrodown >> mustache: spec [

Expand Down
15 changes: 15 additions & 0 deletions src/Microdown/MicBridge.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"
I am a bridge to access resources from Microdown clone
"
Class {
#name : 'MicBridge',
#superclass : 'GitBridge',
#category : 'Microdown-Utils',
#package : 'Microdown',
#tag : 'Utils'
}

{ #category : 'accessing' }
MicBridge class >> resources [
^ self root / 'ressource'
]
Loading