diff --git a/README.md b/README.md index 794e4ecaf..a8fd73c21 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ * [Contributing guidelines](CONTRIBUTING.md) * [Version history](History.md) -* [Liquid documentation from Shopify](https://shopify.dev/api/liquid) +* [Liquid documentation from Shopify](https://shopify.dev/docs/docs/api/liquid) * [Liquid Wiki at GitHub](https://github.com/Shopify/liquid/wiki) * [Website](http://liquidmarkup.org/) diff --git a/lib/liquid/forloop_drop.rb b/lib/liquid/forloop_drop.rb index 1dfa2f3ab..13681b2df 100644 --- a/lib/liquid/forloop_drop.rb +++ b/lib/liquid/forloop_drop.rb @@ -5,7 +5,7 @@ module Liquid # @liquid_type object # @liquid_name forloop # @liquid_summary - # Information about a parent [`for` loop](/api/liquid/tags/for). + # Information about a parent [`for` loop](/docs/api/liquid/tags/for). class ForloopDrop < Drop def initialize(name, length, parentloop) @name = name diff --git a/lib/liquid/standardfilters.rb b/lib/liquid/standardfilters.rb index 7450a9384..50be86d71 100644 --- a/lib/liquid/standardfilters.rb +++ b/lib/liquid/standardfilters.rb @@ -615,7 +615,7 @@ def append(input, string) # @liquid_description # > Note: # > The `concat` filter won't filter out duplicates. If you want to remove duplicates, then you need to use the - # > [`uniq` filter](/api/liquid/filters/uniq). + # > [`uniq` filter](/docs/api/liquid/filters/uniq). # @liquid_syntax array | concat: array # @liquid_return [array[untyped]] def concat(input, array) @@ -857,9 +857,9 @@ def at_most(input, n) # @liquid_summary # Sets a default value for any variable whose value is one of the following: # - # - [`empty`](/api/liquid/basics#empty) - # - [`false`](/api/liquid/basics#truthy-and-falsy) - # - [`nil`](/api/liquid/basics#nil) + # - [`empty`](/docs/api/liquid/basics#empty) + # - [`false`](/docs/api/liquid/basics#truthy-and-falsy) + # - [`nil`](/docs/api/liquid/basics#nil) # @liquid_syntax variable | default: variable # @liquid_return [untyped] # @liquid_optional_param allow_false [boolean] Whether to use false values instead of the default. diff --git a/lib/liquid/tablerowloop_drop.rb b/lib/liquid/tablerowloop_drop.rb index 554a00ed6..730d623a4 100644 --- a/lib/liquid/tablerowloop_drop.rb +++ b/lib/liquid/tablerowloop_drop.rb @@ -5,7 +5,7 @@ module Liquid # @liquid_type object # @liquid_name tablerowloop # @liquid_summary - # Information about a parent [`tablerow` loop](/api/liquid/tags/tablerow). + # Information about a parent [`tablerow` loop](/docs/api/liquid/tags/tablerow). class TablerowloopDrop < Drop def initialize(length, cols) @length = length diff --git a/lib/liquid/tags/assign.rb b/lib/liquid/tags/assign.rb index 7c0abd870..9eff9796e 100644 --- a/lib/liquid/tags/assign.rb +++ b/lib/liquid/tags/assign.rb @@ -8,7 +8,7 @@ module Liquid # @liquid_summary # Creates a new variable. # @liquid_description - # You can create variables of any [basic type](/api/liquid/basics#types), [object](/api/liquid/objects), or object property. + # You can create variables of any [basic type](/docs/api/liquid/basics#types), [object](/docs/api/liquid/objects), or object property. # @liquid_syntax # {% assign variable_name = value %} # @liquid_syntax_keyword variable_name The name of the variable being created. diff --git a/lib/liquid/tags/break.rb b/lib/liquid/tags/break.rb index 70bc9bd75..c2293161d 100644 --- a/lib/liquid/tags/break.rb +++ b/lib/liquid/tags/break.rb @@ -15,7 +15,7 @@ module Liquid # @liquid_category iteration # @liquid_name break # @liquid_summary - # Stops a [`for` loop](/api/liquid/tags/for) from iterating. + # Stops a [`for` loop](/docs/api/liquid/tags/for) from iterating. # @liquid_syntax # {% break %} class Break < Tag diff --git a/lib/liquid/tags/continue.rb b/lib/liquid/tags/continue.rb index aea0a7270..875508384 100644 --- a/lib/liquid/tags/continue.rb +++ b/lib/liquid/tags/continue.rb @@ -6,7 +6,7 @@ module Liquid # @liquid_category iteration # @liquid_name continue # @liquid_summary - # Causes a [`for` loop](/api/liquid/tags/for) to skip to the next iteration. + # Causes a [`for` loop](/docs/api/liquid/tags/for) to skip to the next iteration. # @liquid_syntax # {% continue %} class Continue < Tag diff --git a/lib/liquid/tags/cycle.rb b/lib/liquid/tags/cycle.rb index 19aee5acc..00695265d 100644 --- a/lib/liquid/tags/cycle.rb +++ b/lib/liquid/tags/cycle.rb @@ -6,7 +6,7 @@ module Liquid # @liquid_category iteration # @liquid_name cycle # @liquid_summary - # Loops through a group of strings and outputs them one at a time for each iteration of a [`for` loop](/api/liquid/tags/for). + # Loops through a group of strings and outputs them one at a time for each iteration of a [`for` loop](/docs/api/liquid/tags/for). # @liquid_description # The `cycle` tag must be used inside a `for` loop. # diff --git a/lib/liquid/tags/decrement.rb b/lib/liquid/tags/decrement.rb index 3846e1673..8a99eb94f 100644 --- a/lib/liquid/tags/decrement.rb +++ b/lib/liquid/tags/decrement.rb @@ -12,8 +12,8 @@ module Liquid # or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across # [snippets](/themes/architecture#snippets) included in the file. # - # Similarly, variables that are created with `decrement` are independent from those created with [`assign`](/api/liquid/tags/assign) - # and [`capture`](/api/liquid/tags/capture). However, `decrement` and [`increment`](/api/liquid/tags/increment) share + # Similarly, variables that are created with `decrement` are independent from those created with [`assign`](/docs/api/liquid/tags/assign) + # and [`capture`](/docs/api/liquid/tags/capture). However, `decrement` and [`increment`](/docs/api/liquid/tags/increment) share # variables. # @liquid_syntax # {% decrement variable_name %} diff --git a/lib/liquid/tags/echo.rb b/lib/liquid/tags/echo.rb index 607b1379f..8abb6c2b2 100644 --- a/lib/liquid/tags/echo.rb +++ b/lib/liquid/tags/echo.rb @@ -9,10 +9,10 @@ module Liquid # Outputs an expression. # @liquid_description # Using the `echo` tag is the same as wrapping an expression in curly brackets (`{{` and `}}`). However, unlike the curly - # bracket method, you can use the `echo` tag inside [`liquid` tags](/api/liquid/tags/liquid). + # bracket method, you can use the `echo` tag inside [`liquid` tags](/docs/api/liquid/tags/liquid). # # > Tip: - # > You can use [filters](/api/liquid/filters) on expressions inside `echo` tags. + # > You can use [filters](/docs/api/liquid/filters) on expressions inside `echo` tags. # @liquid_syntax # {% liquid # echo expression diff --git a/lib/liquid/tags/for.rb b/lib/liquid/tags/for.rb index e02b65895..9205fa42f 100644 --- a/lib/liquid/tags/for.rb +++ b/lib/liquid/tags/for.rb @@ -9,10 +9,10 @@ module Liquid # Renders an expression for every item in an array. # @liquid_description # You can do a maximum of 50 iterations with a `for` loop. If you need to iterate over more than 50 items, then use the - # [`paginate` tag](/api/liquid/tags/paginate) to split the items over multiple pages. + # [`paginate` tag](/docs/api/liquid/tags/paginate) to split the items over multiple pages. # # > Tip: - # > Every `for` loop has an associated [`forloop` object](/api/liquid/objects/forloop) with information about the loop. + # > Every `for` loop has an associated [`forloop` object](/docs/api/liquid/objects/forloop) with information about the loop. # @liquid_syntax # {% for variable in array %} # expression diff --git a/lib/liquid/tags/include.rb b/lib/liquid/tags/include.rb index 0664f5c38..f667b9629 100644 --- a/lib/liquid/tags/include.rb +++ b/lib/liquid/tags/include.rb @@ -8,7 +8,7 @@ module Liquid # @liquid_summary # Renders a [snippet](/themes/architecture#snippets). # @liquid_description - # Inside the snippet, you can access and alter variables that are [created](/api/liquid/tags/variable-tags) outside of the + # Inside the snippet, you can access and alter variables that are [created](/docs/api/liquid/tags/variable-tags) outside of the # snippet. # @liquid_syntax # {% include 'filename' %} @@ -16,7 +16,7 @@ module Liquid # @liquid_deprecated # Deprecated because the way that variables are handled reduces performance and makes code harder to both read and maintain. # - # The `include` tag has been replaced by [`render`](/api/liquid/tags/render). + # The `include` tag has been replaced by [`render`](/docs/api/liquid/tags/render). class Include < Tag prepend Tag::Disableable diff --git a/lib/liquid/tags/increment.rb b/lib/liquid/tags/increment.rb index 67ca24f07..5f7e4f6fa 100644 --- a/lib/liquid/tags/increment.rb +++ b/lib/liquid/tags/increment.rb @@ -12,8 +12,8 @@ module Liquid # or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across # [snippets](/themes/architecture#snippets) included in the file. # - # Similarly, variables that are created with `increment` are independent from those created with [`assign`](/api/liquid/tags/assign) - # and [`capture`](/api/liquid/tags/capture). However, `increment` and [`decrement`](/api/liquid/tags/decrement) share + # Similarly, variables that are created with `increment` are independent from those created with [`assign`](/docs/api/liquid/tags/assign) + # and [`capture`](/docs/api/liquid/tags/capture). However, `increment` and [`decrement`](/docs/api/liquid/tags/decrement) share # variables. # @liquid_syntax # {% increment variable_name %} diff --git a/lib/liquid/tags/render.rb b/lib/liquid/tags/render.rb index ed03353ac..967674c12 100644 --- a/lib/liquid/tags/render.rb +++ b/lib/liquid/tags/render.rb @@ -8,19 +8,19 @@ module Liquid # @liquid_summary # Renders a [snippet](/themes/architecture#snippets) or [app block](/themes/architecture/sections/section-schema#render-app-blocks). # @liquid_description - # Inside snippets and app blocks, you can't directly access variables that are [created](/api/liquid/tags/variable-tags) outside - # of the snippet or app block. However, you can [specify variables as parameters](/api/liquid/tags/render#render-passing-variables-to-a-snippet) + # Inside snippets and app blocks, you can't directly access variables that are [created](/docs/api/liquid/tags/variable-tags) outside + # of the snippet or app block. However, you can [specify variables as parameters](/docs/api/liquid/tags/render#render-passing-variables-to-a-snippet) # to pass outside variables to snippets. # # While you can't directly access created variables, you can access global objects, as well as any objects that are # directly accessible outside the snippet or app block. For example, a snippet or app block inside the [product template](/themes/architecture/templates/product) - # can access the [`product` object](/api/liquid/objects/product), and a snippet or app block inside a [section](/themes/architecture/sections) - # can access the [`section` object](/api/liquid/objects/section). + # can access the [`product` object](/docs/api/liquid/objects/product), and a snippet or app block inside a [section](/themes/architecture/sections) + # can access the [`section` object](/docs/api/liquid/objects/section). # # Outside a snippet or app block, you can't access variables created inside the snippet or app block. # # > Note: - # > When you render a snippet using the `render` tag, you can't use the [`include` tag](/api/liquid/tags/include) + # > When you render a snippet using the `render` tag, you can't use the [`include` tag](/docs/api/liquid/tags/include) # > inside the snippet. # @liquid_syntax # {% render 'filename' %} diff --git a/lib/liquid/tags/table_row.rb b/lib/liquid/tags/table_row.rb index d52f268a9..be9a64c44 100644 --- a/lib/liquid/tags/table_row.rb +++ b/lib/liquid/tags/table_row.rb @@ -11,7 +11,7 @@ module Liquid # The `tablerow` tag must be wrapped in HTML `` and `
` tags. # # > Tip: - # > Every `tablerow` loop has an associated [`tablerowloop` object](/api/liquid/objects/tablerowloop) with information about the loop. + # > Every `tablerow` loop has an associated [`tablerowloop` object](/docs/api/liquid/objects/tablerowloop) with information about the loop. # @liquid_syntax # {% tablerow variable in array %} # expression diff --git a/lib/liquid/tags/unless.rb b/lib/liquid/tags/unless.rb index 56b9228bb..74c39587a 100644 --- a/lib/liquid/tags/unless.rb +++ b/lib/liquid/tags/unless.rb @@ -11,7 +11,7 @@ module Liquid # Renders an expression unless a specific condition is `true`. # @liquid_description # > Tip: - # > Similar to the [`if` tag](/api/liquid/tags/if), you can use `elsif` to add more conditions to an `unless` tag. + # > Similar to the [`if` tag](/docs/api/liquid/tags/if), you can use `elsif` to add more conditions to an `unless` tag. # @liquid_syntax # {% unless condition %} # expression