Skip to content

Commit 5ee4b06

Browse files
authored
Merge pull request #6348 from dotty-staging/fix-dottydoc
Fix genDocs following the full bootstrap
2 parents b8fddaf + 32a492e commit 5ee4b06

File tree

4 files changed

+35
-32
lines changed

4 files changed

+35
-32
lines changed

.drone.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,31 @@ pipeline:
2020
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
2121
test:
2222
group: test
23-
image: lampepfl/dotty:2019-02-06
23+
image: lampepfl/dotty:2019-04-22
2424
commands:
2525
- cp -R . /tmp/1/ && cd /tmp/1/
2626
- ./project/scripts/sbt ";compile ;test"
2727
- ./project/scripts/cmdTests
2828

2929
test_bootstrapped:
3030
group: test
31-
image: lampepfl/dotty:2019-02-06
31+
image: lampepfl/dotty:2019-04-22
3232
commands:
3333
- cp -R . /tmp/2/ && cd /tmp/2/
3434
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test; dotty-semanticdb/compile; dotty-semanticdb/test:compile;sjsSandbox/run"
3535
- ./project/scripts/bootstrapCmdTests
3636

3737
community_build:
3838
group: test
39-
image: lampepfl/dotty:2019-02-06
39+
image: lampepfl/dotty:2019-04-22
4040
commands:
4141
- cp -R . /tmp/3/ && cd /tmp/3/
4242
- git submodule update --init --recursive --jobs 7
4343
- ./project/scripts/sbt community-build/test
4444

4545
test_sbt:
4646
group: test
47-
image: lampepfl/dotty:2019-02-06
47+
image: lampepfl/dotty:2019-04-22
4848
commands:
4949
- cp -R . /tmp/4/ && cd /tmp/4/
5050
- ./project/scripts/sbt sbt-dotty/scripted
@@ -54,14 +54,14 @@ pipeline:
5454

5555
test_scala212:
5656
group: test
57-
image: lampepfl/dotty:2019-02-06
57+
image: lampepfl/dotty:2019-04-22
5858
commands:
5959
- cp -R . /tmp/5/ && cd /tmp/5/
6060
- ./project/scripts/sbt ";++2.12.8 ;compile ;test"
6161

6262
# DOCUMENTATION:
6363
documentation:
64-
image: lampepfl/dotty:2019-02-06
64+
image: lampepfl/dotty:2019-04-22
6565
commands:
6666
- ./project/scripts/genDocs
6767
secrets: [ bot_token ]
@@ -73,7 +73,7 @@ pipeline:
7373
# PUBLISHING:
7474
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
7575
publish_nightly:
76-
image: lampepfl/dotty:2019-02-06
76+
image: lampepfl/dotty:2019-04-22
7777
environment:
7878
- NIGHTLYBUILD=yes
7979
commands:
@@ -84,7 +84,7 @@ pipeline:
8484
environment: nightly
8585

8686
publish_release:
87-
image: lampepfl/dotty:2019-02-06
87+
image: lampepfl/dotty:2019-04-22
8888
environment:
8989
- RELEASEBUILD=yes
9090
commands:
@@ -108,7 +108,7 @@ pipeline:
108108
event: tag
109109

110110
publish_sbt_release:
111-
image: lampepfl/dotty:2019-02-06
111+
image: lampepfl/dotty:2019-04-22
112112
environment:
113113
- RELEASEBUILD=yes
114114
commands:

doc-tool/src/dotty/tools/dottydoc/model/factories.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ object factories {
126126

127127
case tp: LazyRef =>
128128
expandTpe(tp.ref)
129+
130+
case MatchType(bound, scrutinee, cases) =>
131+
// See #6295
132+
ConstantReference("FIXME: MatchType support")
129133
}
130134

131135
expandTpe(t)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package dotty.tools.dottydoc.staticsite;
2+
3+
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
4+
import com.fasterxml.jackson.databind.ObjectMapper;
5+
import com.fasterxml.jackson.core.type.TypeReference;
6+
7+
import java.util.HashMap;
8+
import java.io.ByteArrayInputStream;
9+
10+
public class Yaml {
11+
12+
public static HashMap<String, Object> apply(String input)
13+
throws java.io.UnsupportedEncodingException, java.io.IOException {
14+
ByteArrayInputStream is = new ByteArrayInputStream(input.getBytes("UTF-8"));
15+
ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
16+
17+
TypeReference<HashMap<String, Object>> typeRef =
18+
new TypeReference<HashMap<String, Object>>() {};
19+
20+
return mapper.readValue(is, typeRef);
21+
}
22+
}

doc-tool/src/dotty/tools/dottydoc/staticsite/Yaml.scala

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)