parameters: (configuration)
return_statement: return list_of_contents
docstring: This pulls the content from the configuration file at `configuration` location
      then parses it to populate the list_of_content variable that contains all contents
      that needs to be pulled and processed.
      :param configuration: Documentation build configuration file path.
docstring_summary: This pulls the content from the configuration file at `configuration` location
      then parses it to populate the list_of_content variable that contains all contents
      that needs to be pulled and processed.
      :param configuration: Documentation build configuration file path.
docstring_tokens: This pulls the content from the configuration file at configuration location then parses it to populate the list_of_content variable that contains all contents that needs to be pulled and processed . : param configuration : Documentation build configuration file path .
function: def extract_config(configuration):
      """
      This pulls the content from the configuration file at `configuration` location
      then parses it to populate the list_of_content variable that contains all contents
      that needs to be pulled and processed.
      :param configuration: Documentation build configuration file path.
      """
      list_of_contents = []
  
      for org in configuration:
          for repo in org["repos"]:
              for content in repo["contents"]:
                  content_temp = {}
                  content_temp["org_name"] = org[
                      "org_name"
                  ]
                  content_temp["repo_name"] = repo[
                      "repo_name"
                  ]
                  content_temp["branch"] = content[
                      "branch"
                  ]
                  content_temp["sha"] = content.get("sha", None)
                  content_temp["action"] = content[
                      "action"
                  ]
                  content_temp["globs"] = content["globs"]
  
                  if content["action"] in ("pull-and-push-folder", "pull-and-push-file", "security-rules", "compliance-rules"):
                      content_temp["options"] = content["options"]
  
                  list_of_contents.append(
                      content_temp
                  )
  
      return list_of_contents
function_tokens: def extract_config ( configuration ) : list_of_contents = [ ] for org in configuration : for repo in org [ "repos" ] : for content in repo [ "contents" ] : content_temp = { } content_temp [ "org_name" ] = org [ "org_name" ] content_temp [ "repo_name" ] = repo [ "repo_name" ] content_temp [ "branch" ] = content [ "branch" ] content_temp [ "sha" ] = content . get ( "sha" , None ) content_temp [ "action" ] = content [ "action" ] content_temp [ "globs" ] = content [ "globs" ] if content [ "action" ] in ( "pull-and-push-folder" , "pull-and-push-file" , "security-rules" , "compliance-rules" ) : content_temp [ "options" ] = content [ "options" ] list_of_contents . append ( content_temp ) return list_of_contents