Skip to content

Commit

Permalink
[MINOR][DOCS] Remove unneeded production tag block method
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Remove an unneeded method override in the definition of `ProductionTag`.

### Why are the changes needed?

It's just noise.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

I built the docs and confirmed that this script block shows up only when `PRODUCTION=1`: https://github.com/apache/spark/blob/71468ebcc85e2694935086dcf0b01bfe2bff745f/docs/_layouts/global.html#L35-L52

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#44788 from nchammas/production-tagblock.

Authored-by: Nicholas Chammas <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
nchammas authored and HyukjinKwon committed Jan 19, 2024
1 parent c0939fa commit b5f592b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/_plugins/production_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

module Jekyll
class ProductionTag < Liquid::Block

def initialize(tag_name, markup, tokens)
super
end

def render(context)
if ENV['PRODUCTION'] then super else "" end
end
Expand Down

0 comments on commit b5f592b

Please sign in to comment.