Skip to content

Commit b33bf53

Browse files
committed
chore: Add before state for the css test
1 parent b8e2c0f commit b33bf53

File tree

8 files changed

+118
-0
lines changed

8 files changed

+118
-0
lines changed

tests/cli_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ fn cli_tests() {
1111
t.skip("tests/cmd/custom_syntax_highlighting.md");
1212
t.skip("tests/cmd/syntax_highlighting.md");
1313
t.skip("tests/cmd/syntax_highlighting_disabled.md");
14+
t.skip("tests/cmd/syntax_highlighting_css.md");
1415
}
1516
#[cfg(not(feature = "serve"))]
1617
{
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
</head>
6+
<body>
7+
<h1>{{ page.permalink }}</h1>
8+
9+
{{ page.content }}
10+
</body>
11+
</html>
12+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>My blog - {{ page.title }}</title>
5+
</head>
6+
<body>
7+
{{ page.content }}
8+
</body>
9+
</html>
10+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
layout: default.liquid
3+
---
4+
This is my Index page!
5+
6+
{% for post in collections.posts.pages %}
7+
<a href="{{post.permalink}}">{{ post.title }}</a>
8+
{% endfor %}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: Some rust code
3+
published_date: 2022-08-23 22:01:41 +0000
4+
layout: default.liquid
5+
---
6+
# Some rust code
7+
8+
```rust
9+
// This is a comment, and is ignored by the compiler.
10+
// You can test this code by clicking the "Run" button over there ->
11+
// or if you prefer to use your keyboard, you can use the "Ctrl + Enter"
12+
// shortcut.
13+
14+
// This code is editable, feel free to hack it!
15+
// You can always return to the original code by clicking the "Reset" button ->
16+
17+
// This is the main function.
18+
fn main() {
19+
// Statements here are executed when the compiled binary is called.
20+
21+
// Print text to the console.
22+
println!("Hello World!");
23+
}
24+
```
25+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```console
2+
$ cobalt -v build --destination _dest
3+
WARN: No _cobalt.yml file found in current directory, using default config.
4+
Building from `.` into `[CWD]/_dest`
5+
DEBUG: glob converted to regex: Glob { glob: "**/.*", re: "(?-u)^(?:/?|.*/)//.[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('.'), ZeroOrMore]) }
6+
DEBUG: glob converted to regex: Glob { glob: "**/_*", re: "(?-u)^(?:/?|.*/)_[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('_'), ZeroOrMore]) }
7+
DEBUG: built glob set; 5 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 2 regexes
8+
DEBUG: Loading data from `./_data`
9+
DEBUG: glob converted to regex: Glob { glob: "**/.*", re: "(?-u)^(?:/?|.*/)//.[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('.'), ZeroOrMore]) }
10+
DEBUG: glob converted to regex: Glob { glob: "**/_*", re: "(?-u)^(?:/?|.*/)_[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('_'), ZeroOrMore]) }
11+
DEBUG: built glob set; 0 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 2 regexes
12+
DEBUG: Loading snippets from `./_includes`
13+
Build successful
14+
15+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
</head>
6+
<body>
7+
<h1>index.html</h1>
8+
9+
This is my Index page!
10+
11+
12+
<a href="posts/2022-08-23-my-first-post.html">Some rust code</a>
13+
14+
15+
</body>
16+
</html>
17+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
</head>
6+
<body>
7+
<h1>posts/2022-08-23-my-first-post.html</h1>
8+
9+
<h1>Some rust code</h1>
10+
<pre style="background-color:#2b303b;">
11+
<code><span style="color:#65737e;">// This is a comment, and is ignored by the compiler.
12+
</span><span style="color:#65737e;">// You can test this code by clicking the &quot;Run&quot; button over there -&gt;
13+
</span><span style="color:#65737e;">// or if you prefer to use your keyboard, you can use the &quot;Ctrl + Enter&quot;
14+
</span><span style="color:#65737e;">// shortcut.
15+
</span><span style="color:#c0c5ce;">
16+
</span><span style="color:#65737e;">// This code is editable, feel free to hack it!
17+
</span><span style="color:#65737e;">// You can always return to the original code by clicking the &quot;Reset&quot; button -&gt;
18+
</span><span style="color:#c0c5ce;">
19+
</span><span style="color:#65737e;">// This is the main function.
20+
</span><span style="color:#b48ead;">fn </span><span style="color:#8fa1b3;">main</span><span style="color:#c0c5ce;">() {
21+
</span><span style="color:#c0c5ce;"> </span><span style="color:#65737e;">// Statements here are executed when the compiled binary is called.
22+
</span><span style="color:#c0c5ce;">
23+
</span><span style="color:#c0c5ce;"> </span><span style="color:#65737e;">// Print text to the console.
24+
</span><span style="color:#c0c5ce;"> println!(&quot;</span><span style="color:#a3be8c;">Hello World!</span><span style="color:#c0c5ce;">&quot;);
25+
</span><span style="color:#c0c5ce;">}
26+
</span></code></pre>
27+
28+
</body>
29+
</html>
30+

0 commit comments

Comments
 (0)