mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Merge pull request #2114 from ZhenShuo2021/docs/codeblock-lang
📝 Docs: update codeblock language
This commit is contained in:
@@ -3639,6 +3639,9 @@ a {
|
||||
color: rgba(var(--color-neutral-200), 1);
|
||||
}
|
||||
}
|
||||
.prose-invert .highlight pre > code {
|
||||
background-color: unset;
|
||||
}
|
||||
.chroma .lntd, .chroma .lntd pre {
|
||||
margin: calc(var(--spacing) * 0);
|
||||
--tw-border-style: none;
|
||||
|
||||
@@ -134,6 +134,10 @@ a {
|
||||
@apply static rounded-md text-neutral-700 bg-neutral-50 dark:bg-neutral-700 dark:text-neutral-200;
|
||||
}
|
||||
|
||||
.prose-invert .highlight pre > code {
|
||||
background-color: unset;
|
||||
}
|
||||
|
||||
/* LineTableTD */
|
||||
.chroma .lntd,
|
||||
.chroma .lntd pre {
|
||||
|
||||
@@ -18,7 +18,7 @@ description: "Questa pagina è stata creata utilizzando il tema Blowfish per Hug
|
||||
</div>
|
||||
|
||||
|
||||
```node
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ description: "このページは Hugo の Blowfish テーマを利用して構
|
||||
</div>
|
||||
|
||||
|
||||
```node
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ description: "This page was built using the Blowfish theme for Hugo."
|
||||
</div>
|
||||
|
||||
|
||||
```node
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ description: "此页面是使用 Hugo 的 Blowfish 主题搭建的"
|
||||
</div>
|
||||
|
||||
|
||||
```node
|
||||
```shell
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ In order to be able to support dynamic data across your website we've added the
|
||||
3. Select analytics location
|
||||
4. Setup firebase in Blowfish by getting the variables for your project and setting them inside `params.toml` file. More details can be found in <a target="_blank" href="{{< ref "configuration/#theme-parameters" >}}">this page</a>. You can find an example of the file Firebase will provide below, notice the parameters within the FirebaseConfig object.
|
||||
|
||||
```
|
||||
```js
|
||||
// Import the functions you need from the SDKs you need
|
||||
import { initializeApp } from "firebase/app";
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
@@ -41,7 +41,7 @@ const analytics = getAnalytics(app);
|
||||
```
|
||||
|
||||
5. Setup Firestore - Select Build and open Firestore. Create a new database and choose to start in production mode. Select server location and wait. Once that is started you need to configure the rules. Just copy and paste the file below and press publish.
|
||||
```
|
||||
```txt
|
||||
rules_version = '2';
|
||||
service cloud.firestore {
|
||||
match /databases/{database}/documents {
|
||||
|
||||
@@ -16,7 +16,7 @@ series_order: 15
|
||||
3. 分析ロケーションを選択します
|
||||
4. プロジェクトの変数を取得し、`params.toml` ファイル内で設定して、Blowfish で Firebase を設定します。詳細は、<a target="_blank" href="{{< ref "configuration/#テーマパラメーターtheme-parameters" >}}">このページ</a>をご覧ください。Firebase が提供するファイルの例を以下に示します。FirebaseConfig オブジェクト内のパラメータに注意してください。
|
||||
|
||||
```
|
||||
```js
|
||||
// 必要な SDK から必要な関数をインポートします
|
||||
import { initializeApp } from "firebase/app";
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
@@ -41,7 +41,7 @@ const analytics = getAnalytics(app);
|
||||
```
|
||||
|
||||
5. Firestore を設定する - 「ビルド」を選択して Firestore を開きます。新しいデータベースを作成し、本番モードで開始することを選択します。サーバーの場所を選択して待ちます。開始したら、ルールを設定する必要があります。以下のファイルをコピーして貼り付け、「公開」をクリックします。
|
||||
```
|
||||
```txt
|
||||
rules_version = '2';
|
||||
service cloud.firestore {
|
||||
match /databases/{database}/documents {
|
||||
|
||||
@@ -16,7 +16,7 @@ In order to be able to support dynamic data across your website we've added the
|
||||
3. Select analytics location
|
||||
4. Setup firebase in Blowfish by getting the variables for your project and setting them inside `params.toml` file. More details can be found in <a target="_blank" href="{{< ref "configuration/#theme-parameters" >}}">this page</a>. You can find an example of the file Firebase will provide below, notice the parameters within the FirebaseConfig object.
|
||||
|
||||
```
|
||||
```js
|
||||
// Import the functions you need from the SDKs you need
|
||||
import { initializeApp } from "firebase/app";
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
@@ -41,7 +41,7 @@ const analytics = getAnalytics(app);
|
||||
```
|
||||
|
||||
5. Setup Firestore - Select Build and open Firestore. Create a new database and choose to start in production mode. Select server location and wait. Once that is started you need to configure the rules. Just copy and paste the file below and press publish.
|
||||
```
|
||||
```txt
|
||||
rules_version = '2';
|
||||
service cloud.firestore {
|
||||
match /databases/{database}/documents {
|
||||
|
||||
@@ -16,7 +16,7 @@ series_order: 15
|
||||
3. 选择分析位置
|
||||
4. Blowfish 是通过 `params.toml` 配置文件中的 firebase 相关参数,来和 firebase 集成的,更多的细节内容可以参考 <a target="_blank" href="{{< ref "configuration/#theme-parameters" >}}">这个页面</a>。你可以在下面找到集成 firebase 的文件示例,请注意 FirebaseConfig 对象内的参数。
|
||||
|
||||
```
|
||||
```js
|
||||
// 从你需要的 SDK 中导入所需的函数
|
||||
import { initializeApp } from "firebase/app";
|
||||
import { getAnalytics } from "firebase/analytics";
|
||||
@@ -41,7 +41,7 @@ const analytics = getAnalytics(app);
|
||||
```
|
||||
|
||||
5. 设置 Firestore - 选择 Build 并打开 Firestore. 创建一个数据库,并在生产环境中启动。选择服务器位置然后等待其部署完成。启动之后你需要配置规则。只需要复制并粘贴下面的内容,然后点击发布即可。
|
||||
```
|
||||
```txt
|
||||
rules_version = '2';
|
||||
service cloud.firestore {
|
||||
match /databases/{database}/documents {
|
||||
|
||||
Reference in New Issue
Block a user