Sha256: 68c1ff5a638c00876a29be9d541c4fc40c41ab2bb16bd2e0211e62c65932cb0c

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

Feature: Simple site building
  I want to be able to build a site

  Scenario: Simple site
    Given I have a "_config.yml" file with content:
    """
    markdown: kramdown
    plugins:
      - jekyll-chatgpt-translate
    chatgpt-translate:
      source: en
      layout: translated
      targets:
        -
          language: cn
          permalink: :year-:month-:day-:title-chinese.html
          layout: chinese-translated
        -
          language: fr
          permalink: :year/:title-french.html
    """
    And I have a "_layouts/default.html" file with content:
    """
    {{ content }}
    """
    And I have a "_layouts/chinese-translated.html" file with content:
    """
    Chinese: {{ content }}
    """
    And I have a "_posts/2023-01-01-hello.md" file with content:
    """
    ---
    layout: default
    ---
    Hello, world!
    """
    Then I build Jekyll site
    Then File "_site/2023/01/01/hello.html" exists
    Then File "_site/2023-01-01-Hello-chinese.html" exists
    Then File "_site/2023/Hello-french.html" exists
    And Exit code is zero

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-chatgpt-translate-0.0.6 features/cli.feature
jekyll-chatgpt-translate-0.0.5 features/cli.feature
jekyll-chatgpt-translate-0.0.4 features/cli.feature
jekyll-chatgpt-translate-0.0.3 features/cli.feature
jekyll-chatgpt-translate-0.0.2 features/cli.feature
jekyll-chatgpt-translate-0.0.1 features/cli.feature