Skip to content

Commit 2ba5b74

Browse files
committed
Merge branch 'master' into develop
2 parents 1c5eaae + 16b9409 commit 2ba5b74

File tree

5 files changed

+53
-8
lines changed

5 files changed

+53
-8
lines changed

deployments/docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ services:
1111
restart: always
1212
codimd:
1313
# you can use image or custom build below
14-
# image: nabo.codimd.dev/hackmdio/hackmd:1.4.0
15-
build:
16-
context: ..
17-
dockerfile: ./deployments/Dockerfile
14+
image: nabo.codimd.dev/hackmdio/hackmd:2.0.0
15+
# build:
16+
# context: ..
17+
# dockerfile: ./deployments/Dockerfile
1818
environment:
1919
- CMD_DB_URL=postgres://codimd:change_password@database/codimd
2020
- CMD_USECDN=false

lib/csp.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ var defaultDirectives = {
1616
connectSrc: ['*']
1717
}
1818

19+
var dropboxDirectives = {
20+
scriptSrc: ['https://www.dropbox.com']
21+
}
22+
1923
var cdnDirectives = {
2024
scriptSrc: ['https://cdnjs.cloudflare.com', 'https://cdn.jsdelivr.net', 'https://cdn.mathjax.org'],
2125
styleSrc: ['https://cdnjs.cloudflare.com', 'https://cdn.jsdelivr.net', 'https://fonts.googleapis.com'],
@@ -37,6 +41,7 @@ CspStrategy.computeDirectives = function () {
3741
mergeDirectives(directives, config.csp.directives)
3842
mergeDirectivesIf(config.csp.addDefaults, directives, defaultDirectives)
3943
mergeDirectivesIf(config.useCDN, directives, cdnDirectives)
44+
mergeDirectivesIf(config.dropbox && config.dropbox.appKey, directives, dropboxDirectives)
4045
mergeDirectivesIf(config.csp.addDisqus, directives, disqusDirectives)
4146
mergeDirectivesIf(config.csp.addGoogleAnalytics, directives, googleAnalyticsDirectives)
4247
if (!areAllInlineScriptsAllowed(directives)) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codimd",
3-
"version": "1.4.1",
3+
"version": "2.0.0",
44
"description": "Realtime collaborative markdown notes on all platforms.",
55
"keywords": [
66
"Collaborative",

public/docs/release-notes.md

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,46 @@
11
Release Notes
22
===
33

4+
<i class="fa fa-tag"></i> 2.0.0 Urocissa caerulea <i class="fa fa-clock-o"></i> 2020-03-02
5+
---
6+
7+
<div style="text-align: center; margin-bottom: 1em;">
8+
<img src="https://i.imgur.com/oRbNzRm.jpg" width="600">
9+
<small style="display: block;">Urocissa caerulea</small>
10+
</div>
11+
12+
> The Taiwan blue magpie (Urocissa caerulea), also called the Taiwan magpie, Formosan blue magpie , or the "long-tailed mountain lady", is a species of bird of the crow family. It is endemic to Taiwan.
13+
>
14+
> \- Wikipedia [Taiwan blue magpie](en.wikipedia.org/wiki/Taiwan_blue_magpie)
15+
16+
In the past few months, we delivered not only a bunch of awesome features but also some critical bug fixes. Moreover, we refactored CodiMD's backend and started to write new tests.
17+
18+
To make it easier to maintain, we dropped legacy code, reorganize the repository, and add new documentation. For these reasons, we decided to make a huge leap toward version 2.0.0.
19+
20+
Here are the highlights coming from version 2.0.0:
21+
22+
- [Multilanguage spellchecker][multilanguage-spellchecker]
23+
- [Customize editor color schemes][customize-editor-color-schemes]
24+
- [Export note with Pandoc][support-pandoc-export]
25+
- [Embed Geolocation data][embedding-geolocation-data]
26+
- [Version checking][auto-version-check-for-site-admin]
27+
- [Meet the new CodiMD CLI][meet-the-new-codimd-cli]
28+
- [Refreshed Documentation structure and new Markdown guides](refreshed-documentation-structure-and-new-markdown-guides)
29+
30+
It's our pleasure to announce CodiMD `2.0.0`. Enjoy as always :heartpulse:.
31+
32+
[Check out the complete release note][v2_0_0]. Thank you CodiMD community and all our contributors. ❤️
33+
34+
[multilanguage-spellchecker]: https://hackmd.io/@codimd/v2_0_0#Multilanguage-spellchecker
35+
[customize-editor-color-schemes]: https://hackmd.io/@codimd/v2_0_0#Customize-editor-color-schemes
36+
[support-pandoc-export]: https://hackmd.io/@codimd/v2_0_0#Support-Pandoc-export
37+
[embedding-geolocation-data]: https://hackmd.io/@codimd/v2_0_0#Embedding-Geolocation-data
38+
[auto-version-check-for-site-admin]: https://hackmd.io/@codimd/v2_0_0#Auto-version-check-for-site-admin
39+
[meet-the-new-codimd-cli]: https://hackmd.io/@codimd/v2_0_0#Meet-the-new-CodiMD-CLI
40+
[refreshed-documentation-structure-and-new-markdown-guides]: https://hackmd.io/@codimd/v2_0_0#Refreshed-Documentation-structure-and-new-Markdown-guides
41+
42+
[v2_0_0]: https://hackmd.io/@codimd/release-notes/%2F%40codimd%2Fv2_0_0
43+
444
<i class="fa fa-tag"></i> 1.4.1 <i class="fa fa-clock-o"></i> 2019-12-13
545
---
646

@@ -26,8 +66,8 @@ Release Notes
2666
---
2767

2868
<div style="text-align: center; margin-bottom: 1em;">
29-
<img src="https://upload.wikimedia.org/wikipedia/commons/6/60/Mikado_Pheasant_398.jpg" width="300">
30-
<small style="display: block;">Mikado Pheasant, photo credits to <a href="https://zh.wikipedia.org/wiki/File:Mikado_Pheasant_398.jpg">Snowyowls from wikipedia</a></small>
69+
<img src="https://upload.wikimedia.org/wikipedia/commons/6/60/Mikado_Pheasant_398.jpg" width="300">
70+
<small style="display: block;">Mikado Pheasant, photo credits to <a href="https://zh.wikipedia.org/wiki/File:Mikado_Pheasant_398.jpg">Snowyowls from wikipedia</a></small>
3171
</div>
3272

3373
Starting from version 1.4.0, we'll pick one species from [_the endemic species of Taiwan_](https://en.wikipedia.org/wiki/List_of_endemic_species_of_Taiwan) as version name. Is there anyone still remember we've once used type of coffee as our version name? It's time to revive that good convention, but this time we don't need coffee to stay up all night. 💤

0 commit comments

Comments
 (0)