class_docstr: A placeholder object that gets resolved to the directory of the Markdown file currently being rendered.
  
  This is the implementation of the `!relative` tag, but can also be passed programmatically.
class_docstr_tok: ["A","placeholder","object","that","gets","resolved","to","the","directory","of","the","Markdown","file","currently","being","rendered",".","This","is","the","implementation","of","the","`","!","relative","`","tag",",","but","can","also","be","passed","programmatically","."]
code: def value(self) -> str:
      current_page = self.config._current_page
      if current_page is None:
          raise exceptions.ConfigurationError(
              "The current file is not set for the '!relative' tag. "
              "It cannot be used in this context; the intended usage is within `markdown_extensions`."
          )
      return os.path.dirname(
          os.path.join(self.config.docs_dir, current_page.file.src_path)
      )
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import os.path
  from typing import IO, TYPE_CHECKING, Any
  import mergedeep
  import yaml
  import yaml.constructor
  import yaml_env_tag
  from mkdocs import exceptions
label_desc: Use image node_id 2 for calling the RelativeDirPlaceholder obj's underlying member method code with example usage: obj.value() and returns: os